ELECTRON-1019: enable spellchecker for popup window (#571)

This commit is contained in:
VICTOR RAPHAEL BRAGA DE SALES MASCARENHAS 2019-02-19 07:14:36 -03:00 committed by Vishwas Shashidhar
parent 97def71ffb
commit 21b97e772d
2 changed files with 1 additions and 6 deletions

View File

@ -86,10 +86,6 @@ const throttledSetIsInMeetingStatus = throttle(1000, function (isInMeeting) {
local.ipcRenderer.on('on-page-load', () => {
snackBar = new SnackBar();
// Enable spellchecker only for main window until
// the underline memory leak is fixed on electron
// https://github.com/electron/electron/issues/15459
if (window.name === 'main') {
webFrame.setSpellCheckProvider('en-US', true, {
spellCheck (text) {
return !local.ipcRenderer.sendSync(apiName, {
@ -98,7 +94,6 @@ local.ipcRenderer.on('on-page-load', () => {
});
}
});
}
// only registers main window's preload
if (window.name === 'main') {

View File

@ -87,7 +87,7 @@
"browserify": "16.2.3",
"chromedriver": "2.45.0",
"cross-env": "5.2.0",
"electron": "4.0.4",
"electron": "4.0.5",
"electron-builder": "20.38.4",
"electron-builder-squirrel-windows": "20.38.3",
"electron-chromedriver": "4.0.0-beta.1",