Merge branch 'main' into feat/remove-synchronize-typeorm

This commit is contained in:
Zamitto 2024-09-02 12:58:08 -03:00 committed by GitHub
commit 6b3d3c8f5b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
14 changed files with 157 additions and 49 deletions

View file

@ -106,10 +106,15 @@ app.on("browser-window-created", (_, window) => {
const handleDeepLinkPath = (uri?: string) => {
if (!uri) return;
const url = new URL(uri);
if (url.host === "install-source") {
WindowManager.redirect(`settings${url.search}`);
try {
const url = new URL(uri);
if (url.host === "install-source") {
WindowManager.redirect(`settings${url.search}`);
}
} catch (error) {
logger.error("Error handling deep link", uri, error);
}
};