fix: Finalize electron

This commit is contained in:
LukeGus
2025-11-05 00:08:31 -06:00
parent 38bd4060a4
commit 68be736dc7
4 changed files with 6 additions and 11 deletions

View File

@@ -67,7 +67,7 @@
],
"icon": "public/icon.png",
"category": "Development",
"executableName": "termix",
"executableName": "run.sh",
"maintainer": "Termix <mail@termix.site>",
"desktop": {
"entry": {

3
electron/run.sh Normal file
View File

@@ -0,0 +1,3 @@
#!/bin/bash
DIR="$(dirname "$(readlink -f "$0")")"
"$DIR/termix" --no-sandbox "$@"

View File

@@ -1340,7 +1340,7 @@
"forbidden": "Access forbidden",
"serverError": "Server error",
"networkError": "Network error",
"databaseConnection": "Could not connect to the database.",
"databaseConnection": "Could not connect to the database",
"unknownError": "Unknown error",
"loginFailed": "Login failed",
"failedPasswordReset": "Failed to initiate password reset",

View File

@@ -345,15 +345,7 @@ function createApiInstance(
window.location.reload();
});
const currentPath = window.location.pathname;
const isOnAuthPage =
currentPath === "/" ||
currentPath === "/login" ||
currentPath === "/auth";
if (!isOnAuthPage) {
setTimeout(() => window.location.reload(), 1000);
}
setTimeout(() => window.location.reload(), 1000);
}
}