RSS Git Download  Clone
Raw View History
Blames found: 1 Mode: javascript Binary: false


Hang on, we reloading big blames...
var Module = require('module'); var originalRequire = Module.prototype.require; global.window = {}; Module.prototype.require = function(name){ if (name === 'electron') { const mock = { on: () => {}, }; return { ipcMain: mock, app: mock }; } //do your thing here return originalRequire.apply(this, arguments); };