Support --devtools
This commit is contained in:
parent
bdb8926f29
commit
9b973d65a7
|
@ -137,6 +137,10 @@
|
||||||
// top bar devtools
|
// top bar devtools
|
||||||
// browserWindow.webContents.openDevTools({ mode: 'detach' });
|
// browserWindow.webContents.openDevTools({ mode: 'detach' });
|
||||||
|
|
||||||
|
if (remote.process.argv.includes('--devtools')) {
|
||||||
|
browserWindow.webContents.openDevTools({ mode: 'detach' });
|
||||||
|
}
|
||||||
|
|
||||||
updateSupportedLanguages(browserWindow.webContents.session.availableSpellCheckerLanguages);
|
updateSupportedLanguages(browserWindow.webContents.session.availableSpellCheckerLanguages);
|
||||||
|
|
||||||
log.debug('init.window.languages.supported');
|
log.debug('init.window.languages.supported');
|
||||||
|
@ -316,6 +320,10 @@
|
||||||
// tab devtools
|
// tab devtools
|
||||||
// view.webContents.openDevTools();
|
// 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);
|
// console.log('ADD TAB LANGUAGES', getSafeLanguages(this.settings.spellcheckLang), this.settings.spellcheckLang);
|
||||||
view.webContents.session.setSpellCheckerLanguages(getSafeLanguages(this.settings.spellcheckLang));
|
view.webContents.session.setSpellCheckerLanguages(getSafeLanguages(this.settings.spellcheckLang));
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue