Minor
This commit is contained in:
parent
e538a963fd
commit
4263ea2af4
|
@ -89,7 +89,7 @@
|
||||||
@Hook('mounted')
|
@Hook('mounted')
|
||||||
async mounted(): Promise<void> {
|
async mounted(): Promise<void> {
|
||||||
// top bar devtools
|
// top bar devtools
|
||||||
browserWindow.webContents.openDevTools({ mode: 'detach' });
|
// browserWindow.webContents.openDevTools({ mode: 'detach' });
|
||||||
|
|
||||||
updateSupportedLanguages(browserWindow.webContents.session.availableSpellCheckerLanguages);
|
updateSupportedLanguages(browserWindow.webContents.session.availableSpellCheckerLanguages);
|
||||||
|
|
||||||
|
@ -222,7 +222,7 @@
|
||||||
const view = new electron.remote.BrowserView({webPreferences: {webviewTag: true, nodeIntegration: true, spellcheck: true}});
|
const view = new electron.remote.BrowserView({webPreferences: {webviewTag: true, nodeIntegration: true, spellcheck: true}});
|
||||||
|
|
||||||
// tab devtools
|
// tab devtools
|
||||||
view.webContents.openDevTools();
|
// view.webContents.openDevTools();
|
||||||
|
|
||||||
// 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