Support --devtools

This commit is contained in:
Mr. Stallion 2022-09-04 12:47:25 -07:00
parent bdb8926f29
commit 9b973d65a7
1 changed files with 8 additions and 0 deletions

View File

@ -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));