From 9b973d65a7b66a0c90f398d8c0eed0f9cbfdf995 Mon Sep 17 00:00:00 2001 From: "Mr. Stallion" Date: Sun, 4 Sep 2022 12:47:25 -0700 Subject: [PATCH] Support --devtools --- electron/Window.vue | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/electron/Window.vue b/electron/Window.vue index 74d590b..0823fa8 100644 --- a/electron/Window.vue +++ b/electron/Window.vue @@ -137,6 +137,10 @@ // top bar devtools // browserWindow.webContents.openDevTools({ mode: 'detach' }); + if (remote.process.argv.includes('--devtools')) { + browserWindow.webContents.openDevTools({ mode: 'detach' }); + } + updateSupportedLanguages(browserWindow.webContents.session.availableSpellCheckerLanguages); log.debug('init.window.languages.supported'); @@ -316,6 +320,10 @@ // tab devtools // view.webContents.openDevTools(); + if (remote.process.argv.includes('--devtools')) { + view.webContents.openDevTools({ mode: 'detach' }); + } + // console.log('ADD TAB LANGUAGES', getSafeLanguages(this.settings.spellcheckLang), this.settings.spellcheckLang); view.webContents.session.setSpellCheckerLanguages(getSafeLanguages(this.settings.spellcheckLang));