This commit is contained in:
Astra 2018-04-23 05:57:08 -04:00
parent d31301bb50
commit ed2dc53d8e

View file

@ -18,7 +18,7 @@
(() => { (() => {
// abort if we're not currently in the discord app // abort if we're not currently in the discord app
if (location.hostname.indexOf('discordapp') != -1) return; if (location.hostname.indexOf('discordapp') == -1) return;
// use the discord native api to require electron and get electron.remote // use the discord native api to require electron and get electron.remote
var electron = DiscordNative.nativeModules.requireModule('discord_/../electron').remote; var electron = DiscordNative.nativeModules.requireModule('discord_/../electron').remote;