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