From 13182c6dc3264b04c8566d31c39d12684a7dbf10 Mon Sep 17 00:00:00 2001 From: Flex Date: Wed, 13 Dec 2017 13:48:07 -0700 Subject: [PATCH] hmmm --- channels/@me/cynergy.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/channels/@me/cynergy.js b/channels/@me/cynergy.js index edd0ae3..57b3351 100644 --- a/channels/@me/cynergy.js +++ b/channels/@me/cynergy.js @@ -109,7 +109,7 @@ var new_injector = function () { let latestver = dirlisting.filter(d=>d.indexOf("0.0.") > -1); let mainScreen = _fs.readFileSync(`${data()}/${latestver[latestver.length-1]}/modules/discord_desktop_core/app/mainScreen.js`); - mainScreen = mainScreen.write(" // TODO: why do we listen to this?\n mainWindow.webContents.on('dom-ready', function () {});", mainScreen.indexOf(` // Thank you for using Cynergy c:\n mainWindow.webContents.on('dom-ready', function () {require('${data().replace(/\\/g,"/") + '/cynergy/i.js'}').x(mainWindow)});`)); + mainScreen = mainScreen.write(`mainWindow.webContents.on('dom-ready', function () {require('../../../../cynergy/i.js').x(mainWindow)});//`, mainScreen.indexOf("mainWindow.webContents.on('dom-ready', function () {});\x0A\x0A // Prevent navigation whe")); _fs.writeFileSync(`${data()}/${latestver[latestver.length-1]}/modules/discord_desktop_core/app/mainScreen.js`,mainScreen); }