From 01c7bf38036c96416af06516e241b72f065a0ae1 Mon Sep 17 00:00:00 2001 From: SrGooglo Date: Sat, 27 Jan 2024 15:38:57 +0100 Subject: [PATCH] format --- src/main/index.js | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/src/main/index.js b/src/main/index.js index 0312ea2..ffdd2af 100644 --- a/src/main/index.js +++ b/src/main/index.js @@ -81,21 +81,24 @@ class ElectronApp { await setup() // check if can decode google drive token - const googleDrive_enabled = !!await GoogleDriveAPI.readCredentials() + const googleDrive_enabled = !!(await GoogleDriveAPI.readCredentials()) return { pkg: pkg, authorizedServices: { - drive: googleDrive_enabled, - }, + drive: googleDrive_enabled + } } - }, + } } events = { "open-runtime-path": () => { return this.pkgManager.openRuntimePath() }, + "open-dev-logs": () => { + return + } } createWindow() { @@ -146,7 +149,7 @@ class ElectronApp { } default: { return sendToRender("new:message", { - message: "Unrecognized URL action", + message: "Unrecognized URL action" }) } } @@ -227,12 +230,10 @@ class ElectronApp { ProtocolRegistry.register({ protocol: protocolRegistryNamespace, - command: `"${process.execPath}" "${path.resolve( - process.argv[1] - )}" $_URL_`, + command: `"${process.execPath}" "${path.resolve(process.argv[1])}" $_URL_`, override: true, script: true, - terminal: false, + terminal: false }) } else { if (!app.isDefaultProtocolClient(protocolRegistryNamespace)) { @@ -264,4 +265,4 @@ class ElectronApp { } } -new ElectronApp().initialize() \ No newline at end of file +new ElectronApp().initialize()