mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-21 11:36:05 +00:00
fix(native): an error page in place of the server's keeps a way back to the address screen
A proxy's block page or a refused client certificate (Cloudflare's "Sorry, you have been blocked") left the app on a page without TREK's UI and no way to change the server. Any 4xx main-frame page that the client-certificate path does not handle now shows the sign-in bar with its own hint and "Change server", on iOS and Android. TestFlight feedback, 5.1.2.
This commit is contained in:
@@ -1281,7 +1281,11 @@ async function connected(url: string, signInHosts: string[] = [], welcome?: stri
|
||||
await new Promise((r) => setTimeout(r, 700));
|
||||
await TrekShell.setServer({
|
||||
url,
|
||||
labels: { signInHint: t('native.signInBar.hint'), changeServer: t('native.changeServer') },
|
||||
labels: {
|
||||
signInHint: t('native.signInBar.hint'),
|
||||
changeServer: t('native.changeServer'),
|
||||
errorPageHint: t('native.errorPageBar.hint'),
|
||||
},
|
||||
...(signInHosts.length ? { signInHosts } : {}),
|
||||
...(welcome ? { welcome } : {}),
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user