Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

iso

Manav Rathif8d2fda6024b
diff --git a/desktop/src/main.ts b/desktop/src/main.ts
index a1e752f193..aa57e60305 100644
--- a/desktop/src/main.ts
+++ b/desktop/src/main.ts
@@ -150,9 +150,10 @@ const registerForEnteLinks = () => app.setAsDefaultProtocolClient("ente");
/** Sibling of {@link registerForEnteLinks}. */
const handleEnteLinks = (mainWindow: BrowserWindow, url: string) => {
- // Replace "ente://" (our deeplink protocol) in the url with "next://" (the
- // protocol we're using to serve our bundled web app).
- mainWindow.webContents.loadURL(url.replace("ente://", "next://"));
+ // Both (a) our deeplink protocol, and (b) the protocol we're using to serve
+ // our bundled web app, are the same ("ente://"), so the URL can directly be
+ // loaded.
+ mainWindow.webContents.loadURL(url);
};
/**