From 0c5c9dededdff1bd9bb45bb16335a31894b92ba5 Mon Sep 17 00:00:00 2001 From: Flex Date: Sat, 9 Dec 2017 11:35:23 -0700 Subject: [PATCH] paths making me angery --- channels/@me/cynergy.js | 5 ++++- channels/@me/index.html | 8 +++++--- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/channels/@me/cynergy.js b/channels/@me/cynergy.js index 6de2fa5..9e7a8ce 100644 --- a/channels/@me/cynergy.js +++ b/channels/@me/cynergy.js @@ -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('${approot().split('app.asar')[0] + '/cynergy/i.js'}').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].replace(/\\/g,"/") + '/cynergy/i.js'}').x(mainWindow)});//`, bdata.indexOf("mainWindow.webContents.on('dom-ready', function () {});\x0A\x0A // Prevent navigation whe")); fs.writeFileSync(remote.app.getAppPath(), bdata); }; @@ -108,6 +108,9 @@ var asarunpwn = function() { try{ 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)});//`)); }catch(e){} + try{ + 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].replace(/\\/g,"/") + '/cynergy/i.js'}').x(mainWindow)});//`)); + }catch(e){} fs.writeFileSync(remote.app.getAppPath(), bdata); } diff --git a/channels/@me/index.html b/channels/@me/index.html index eb71e5e..f830605 100644 --- a/channels/@me/index.html +++ b/channels/@me/index.html @@ -87,9 +87,11 @@

Cynergy

Welcome to the Cynergy Injector.

-

-

-

+

+ + + +

Log starts here