electron/preload.js in flammarion-0.1.5 vs electron/preload.js in flammarion-0.1.6
- old
+ new
@@ -1,7 +1,23 @@
// Generated by CoffeeScript 1.9.0
(function() {
+ var error, spellcheck, webFrame;
+
window.$remote = require('remote');
+
+ webFrame = require('web-frame');
+
+ try {
+ spellcheck = require('spellchecker');
+ webFrame.setSpellCheckProvider("en-US", true, {
+ spellCheck: function(text) {
+ return !spellcheck.isMisspelled(text);
+ }
+ });
+ } catch (_error) {
+ error = _error;
+ console.log("Could not load spellchecker: " + error);
+ }
window.onkeyup = function(e) {
if (e.ctrlKey && e.keyCode === 70) {
return window.show_search_bar();
}