fix: Finalize electron
This commit is contained in:
@@ -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
3
electron/run.sh
Normal file
@@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
DIR="$(dirname "$(readlink -f "$0")")"
|
||||
"$DIR/termix" --no-sandbox "$@"
|
||||
@@ -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",
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user