mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-14 00:01:03 +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:
@@ -27,13 +27,14 @@ export interface TrekShellPlugin {
|
||||
* opens the server's welcome page with it, which signs the buyer in. A build
|
||||
* without this option ignores it and opens the server as usual.
|
||||
* `labels` are the words of the bar the app shows over a proxy's sign-in page,
|
||||
* in the user's language: the server's UI is not there to say them.
|
||||
* or over an error page in place of the server's (a proxy's block page), in the
|
||||
* user's language: the server's UI is not there to say them.
|
||||
*/
|
||||
setServer(options: {
|
||||
url: string;
|
||||
signInHosts?: string[];
|
||||
welcome?: string;
|
||||
labels?: { signInHint: string; changeServer: string };
|
||||
labels?: { signInHint: string; changeServer: string; errorPageHint?: string };
|
||||
}): Promise<void>;
|
||||
/** Forgets the server and returns to the address screen. */
|
||||
resetServer(): Promise<void>;
|
||||
|
||||
Reference in New Issue
Block a user