catch me if i fall

This commit is contained in:
Astra 2018-05-03 17:16:30 -04:00
parent 13412fd1be
commit 792b703145

View file

@ -64,15 +64,17 @@
o['WEBAPP_PATH'] = '/app?_=' + Date.now(); // cache busting o['WEBAPP_PATH'] = '/app?_=' + Date.now(); // cache busting
fs.writeFileSync(data + '/settings.json', JSON.stringify(o, null, 2)); // commit changes to disk fs.writeFileSync(data + '/settings.json', JSON.stringify(o, null, 2)); // commit changes to disk
// install asarpwn3 for crispr try {
if (!window.__crisprloaded) // install asarpwn3 for crispr
if (asarinject( if (!window.__crisprloaded)
"// App preload script, used to provide a replacement native API now that\n// we turned off node integration.\nvar electron = require('electron'", if (asarinject(
"var electron=require('electron');var d=electron.remote.app.getPath('userData')+'/crispr.js';if(require('fs').existsSync(d))require(d).go();//" "// App preload script, used to provide a replacement native API now that\n// we turned off node integration.\nvar electron = require('electron'",
)) { "var electron=require('electron');var d=electron.remote.app.getPath('userData')+'/crispr.js';if(require('fs').existsSync(d))require(d).go();//"
electron.app.relaunch(); )) {
electron.app.exit(); electron.app.relaunch();
} electron.app.exit();
}
} catch{ }
// make a window // make a window
window.__monitor = new electron.BrowserWindow({ show: false }); window.__monitor = new electron.BrowserWindow({ show: false });