This repository has been archived by the owner on Jun 27, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Future Discord Update (based on Canary) Prep 1
ED itself and most of the built in plugins are working again. - ED Settings functional - Injection not crashing - Only hidden channels has obvious issue - Devtools custom warning text still broken - Stable support not harmed so far - Due to Discord's electron security updates (which is why a breaking patch was needed in the first place), remote module is no longer relied on by ED, and plugins can no longer use it. (as of now)
- Loading branch information
MasicoreLord
authored and
MasicoreLord
committed
Feb 6, 2021
1 parent
e2ac95c
commit 2f3ad75
Showing
6 changed files
with
60 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
const electron = require('electron'); | ||
const ipcMain = require('electron').ipcMain; | ||
const path = require('path'); | ||
|
||
ipcMain.on('main-process-info', (event, arg) => { | ||
event.returnValue = `{ | ||
"originalNodeModulesPath": "${path.resolve(electron.app.getAppPath(), 'node_modules')}", | ||
"originalPreloadScript": "${event.sender.__preload}" | ||
}` | ||
}); | ||
|
||
ipcMain.on('current-web-contents', (event, arg) => { | ||
event.returnValue = event.sender.__currentWebContents | ||
}); | ||
|
||
ipcMain.on('main-process-utils', (event, arg) => { | ||
event.returnValue = `{ | ||
"dialog": "${electron.dialog}" | ||
}` | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters