From d2c46a73c58f19af385d8629b33a20e99a2b7e7a Mon Sep 17 00:00:00 2001 From: Flex Date: Mon, 18 Dec 2017 16:56:10 -0700 Subject: [PATCH] add back dom-ready now --- channels/@me/cynergy.js | 1 + 1 file changed, 1 insertion(+) diff --git a/channels/@me/cynergy.js b/channels/@me/cynergy.js index c4adffe..1f392e3 100644 --- a/channels/@me/cynergy.js +++ b/channels/@me/cynergy.js @@ -110,6 +110,7 @@ var new_injector = function () { let mainScreen = _fs.readFileSync(`${data()}/${latestver[latestver.length-1]}/modules/discord_desktop_core/app/mainScreen.js`).toString(); mainScreen = mainScreen.replace("mainWindow.webContents.on('dom-ready', function () {});",`mainWindow.webContents.on('dom-ready', function () {require('../../../../cynergy/i.js').x(mainWindow)});`); + mainScreen = mainScreen.replace("// Prevent navigation when links or files are dropping into the app, turning it into a browser.","\n//thanks discord ily /s\nmainWindow.webContents.on('dom-ready', function () {require('../../../../cynergy/i.js').x(mainWindow)});\n\n// Prevent navigation when links or files are dropping into the app, turning it into a browser."); _fs.writeFileSync(`${data()}/${latestver[latestver.length-1]}/modules/discord_desktop_core/app/mainScreen.js`,mainScreen); }