electron-userland / electron-spellchecker

Implement spellchecking, correctly
MIT License
238 stars 83 forks source link

switchLanguage makes switching between BrowserViews glitchy #156

Open vsvipul opened 5 years ago

vsvipul commented 5 years ago

Hey, i am working on porting an app from webview to BrowserView. Spellchecker is working on on each browserView with preload script.

Here is the code for preload script and here is the code for spellchecker.

Initially when i launch the app, switching between browserviews is buggy. But when i comment the line-

this.SpellCheckHandler.switchLanguage(serverLanguage);

, then my problem is fixed. Everything works fine after that. This problem is only on Ubuntu and not on MacOS.

Spellchecker version - v2.2.0 Electron version - v5.0.6

This is the error in video - share.getcloudapp.com/KouLzOAB

Screenshot from 2019-07-25 02-08-46

vsvipul commented 5 years ago

this.SpellCheckHandler.switchLanguage('en-US') does not give any problems while this.SpellCheckHandler.switchLanguage('en'); is the one giving problems.