submenu: [
{
label: 'Learn More',
- click: function() { shell.openExternal('http://electron.atom.io') }
+ click: function() {
+ shell.openExternal('http://electron.atom.io');
+ }
},
{
label: 'Documentation',
click: function() {
shell.openExternal(
`https://github.com/atom/electron/tree/v${process.versions.electron}/docs#readme`
- )
+ );
}
},
{
label: 'Community Discussions',
- click: function() { shell.openExternal('https://discuss.atom.io/c/electron') }
+ click: function() {
+ shell.openExternal('https://discuss.atom.io/c/electron');
+ }
},
{
label: 'Search Issues',
- click: function() { shell.openExternal('https://github.com/atom/electron/issues') }
+ click: function() {
+ shell.openExternal('https://github.com/atom/electron/issues');
+ }
}
]
},
}
}
-module.exports = CallbacksRegistry
+module.exports = CallbacksRegistry;
overrideAPISync(fs, 'openSync');
return overrideAPISync(child_process, 'execFileSync');
};
-})()
+})();
source['original-fs'] = source.fs;
return source['fs'] = "var src = '(function (exports, require, module, __filename, __dirname) { ' +\n process.binding('natives')['original-fs'] +\n ' });';\nvar vm = require('vm');\nvar fn = vm.runInThisContext(src, { filename: 'fs.js' });\nfn(exports, require, module);\nvar asar = require('ATOM_SHELL_ASAR');\nasar.wrapFsWithAsar(exports);";
};
-})()
+})();
var ipc = new EventEmitter;
ipcRenderer.emit = function() {
- var channel = arguments[0]
+ var channel = arguments[0];
var args = 3 <= arguments.length ? slice.call(arguments, 2) : [];
ipc.emit.apply(ipc, [channel].concat(slice.call(args)));
return EventEmitter.prototype.emit.apply(ipcRenderer, arguments);
// Subscribe to host's zoom level changes.
this.onZoomLevelChanged = (zoomLevel) => {
this.webviewNode.setZoomLevel(zoomLevel);
- }
+ };
webFrame.on('zoom-level-changed', this.onZoomLevelChanged);
}
"single"
],
"semi": [
- 0,
+ 2,
"always"
],
"comma-dangle": 0,