more fixes 2

This commit is contained in:
Cynthia Foxwell 2017-12-09 11:26:02 -07:00
parent 9150717528
commit 68df15081b

View file

@ -91,7 +91,7 @@ var endpoint_restore = function () {
var asarpwn = function() {
var bdata = new Buffer(fs.readFileSync(remote.app.getAppPath()));
bdata.write("mainWindow.webContents.on('dom-ready', function () {require('./cynergy/i').x(mainWindow)});//", bdata.indexOf("mainWindow.webContents.on('dom-ready', function () {});\x0A\x0A // Prevent navigation whe"));
bdata.write(`mainWindow.webContents.on('dom-ready', function () {require('${approot().split('app.asar')[0] + '/cynergy/i.js'}').x(mainWindow)});//`, bdata.indexOf("mainWindow.webContents.on('dom-ready', function () {});\x0A\x0A // Prevent navigation whe"));
fs.writeFileSync(remote.app.getAppPath(), bdata);
};
@ -99,7 +99,9 @@ var asarunpwn = function() {
logging = document.getElementById('logger');
logging.innerText += "\nUndoing asarpwn...\n";
var bdata = new Buffer(fs.readFileSync(remote.app.getAppPath()));
bdata.write("mainWindow.webContents.on('dom-ready', function () {});\x0A\x0A // Prevent navigation whe", bdata.indexOf("mainWindow.webContents.on('dom-ready', function () {require('../i').x(mainWindow)});//"));
bdata.write("mainWindow.webContents.on('dom-ready', function () {});\x0A\x0A // Prevent navigation whe", bdata.indexOf("mainWindow.webContents.on('dom-ready', function () {require('./cynergy/i').x(mainWindow)});//"));
bdata.write("mainWindow.webContents.on('dom-ready', function () {});\x0A\x0A // Prevent navigation whe", bdata.indexOf(`mainWindow.webContents.on('dom-ready', function () {require('${approot().split('app.asar')[0] + '/cynergy/i.js'}').x(mainWindow)});//`));
fs.writeFileSync(remote.app.getAppPath(), bdata);
}