π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
iife wrapper
Manav Rathi9a281725652e
diff --git a/desktop/.eslintrc.js b/desktop/.eslintrc.jsindex daf2c2838e..8c1867fc79 100644--- a/desktop/.eslintrc.js+++ b/desktop/.eslintrc.js@@ -28,7 +28,7 @@ module.exports = {/* Temporary (RIP) */"@typescript-eslint/no-unsafe-return": "off","@typescript-eslint/no-confusing-void-expression": "off",- "@typescript-eslint/no-misused-promises": "off",+ // "@typescript-eslint/no-misused-promises": "off",// "@typescript-eslint/no-floating-promises": "off",},};diff --git a/desktop/src/main.ts b/desktop/src/main.tsindex f5ad891588..c849c755f7 100644--- a/desktop/src/main.ts+++ b/desktop/src/main.ts@@ -202,8 +202,8 @@ const createMainWindow = () => {app.dock.hide();});- window.on("show", async () => {- if (process.platform == "darwin") await app.dock.show();+ window.on("show", () => {+ if (process.platform == "darwin") void app.dock.show();});// Let ipcRenderer know when mainWindow is in the foreground so that it can@@ -365,33 +365,35 @@ const main = () => {// Emitted once, when Electron has finished initializing.//// Note that some Electron APIs can only be used after this event occurs.- app.on("ready", async () => {- // Create window and prepare for the renderer.- mainWindow = createMainWindow();- attachIPCHandlers();- attachFSWatchIPCHandlers(createWatcher(mainWindow));- registerStreamProtocol();-- // Configure the renderer's environment.- setDownloadPath(mainWindow.webContents);- allowExternalLinks(mainWindow.webContents);-- // Start loading the renderer.- void mainWindow.loadURL(rendererURL);-- // Continue on with the rest of the startup sequence.- Menu.setApplicationMenu(await createApplicationMenu(mainWindow));- setupTrayItem(mainWindow);- if (!isDev) setupAutoUpdater(mainWindow);-- try {- await deleteLegacyDiskCacheDirIfExists();- await deleteLegacyKeysStoreIfExists();- } catch (e) {- // Log but otherwise ignore errors during non-critical startup- // actions.- log.error("Ignoring startup error", e);- }+ app.on("ready", () => {+ void (async () => {+ // Create window and prepare for the renderer.+ mainWindow = createMainWindow();+ attachIPCHandlers();+ attachFSWatchIPCHandlers(createWatcher(mainWindow));+ registerStreamProtocol();++ // Configure the renderer's environment.+ setDownloadPath(mainWindow.webContents);+ allowExternalLinks(mainWindow.webContents);++ // Start loading the renderer.+ void mainWindow.loadURL(rendererURL);++ // Continue on with the rest of the startup sequence.+ Menu.setApplicationMenu(await createApplicationMenu(mainWindow));+ setupTrayItem(mainWindow);+ if (!isDev) setupAutoUpdater(mainWindow);++ try {+ await deleteLegacyDiskCacheDirIfExists();+ await deleteLegacyKeysStoreIfExists();+ } catch (e) {+ // Log but otherwise ignore errors during non-critical startup+ // actions.+ log.error("Ignoring startup error", e);+ }+ })();});// This is a macOS only event. Show our window when the user activates the