electron/preload.coffee in flammarion-0.1.5 vs electron/preload.coffee in flammarion-0.1.6

- old
+ new

@@ -1,5 +1,17 @@ window.$remote = require('remote') +webFrame = require('web-frame') + +try + spellcheck = require('spellchecker') + + webFrame.setSpellCheckProvider("en-US", true, { + spellCheck: (text) -> + return !spellcheck.isMisspelled(text) + }) +catch error + console.log("Could not load spellchecker: #{error}") + window.onkeyup = (e) -> if e.ctrlKey and e.keyCode is 70 window.show_search_bar()