mirror of
https://github.com/finos/SymphonyElectron.git
synced 2024-11-21 16:38:41 -06:00
ELECTRON-1019: enable spellchecker for popup window (#571)
This commit is contained in:
parent
97def71ffb
commit
21b97e772d
@ -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') {
|
||||
|
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user