Many improvemtns and fixes related to decoupling of svelte and rust on android.
This commit is contained in:
@@ -25,6 +25,13 @@
|
||||
connecting = true;
|
||||
localError = null;
|
||||
|
||||
// Reject plain HTTP — all connections must use HTTPS
|
||||
if (serverUrl.trim().toLowerCase().startsWith("http://")) {
|
||||
localError = "HTTP connections are not allowed. Please use HTTPS (e.g., https://your-server.com).";
|
||||
connecting = false;
|
||||
return;
|
||||
}
|
||||
|
||||
try {
|
||||
const info = await auth.connectToServer(serverUrl);
|
||||
serverName = info.name;
|
||||
|
||||
Reference in New Issue
Block a user