define window.BetterDiscord with a dummy value
This commit is contained in:
parent
d11c87ff88
commit
7e064d5e9e
|
@ -33,6 +33,8 @@ function evaluate(str, exportsR) {
|
|||
if (location.hostname.indexOf('discordapp') == -1) return;
|
||||
__crxprint('extension loaded successfully, loading CRISPR and EPAPI...');
|
||||
|
||||
window.BetterDiscord = 'this is a dummy value to trip hasSuspiciousCode()';
|
||||
|
||||
// use the discord native api to require electron and get electron.remote
|
||||
var electron = DiscordNative.nativeModules.requireModule('discord_/../electron').remote;
|
||||
var fs = electron.require('original-fs');
|
||||
|
|
Loading…
Reference in New Issue