Skip to content

Commit 6b1a7d4

Browse files
committed
chore: deny popup
1 parent aa96cc4 commit 6b1a7d4

File tree

2 files changed

+11
-9
lines changed

2 files changed

+11
-9
lines changed

AppCore/Constants.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,11 @@ module.exports = class Constants extends null {
1111
'notes',
1212
'roles/member-counts',
1313
'member-ids',
14-
'connections/configuration',
14+
'connections/',
1515
'users/@me/disable',
1616
'users/@me/delete',
1717
'users/@me/mfa',
1818
'users/@me/phone',
19-
'connections/eligibility',
2019
'interaction-data',
2120
'member-verification',
2221
'cdn-cgi/challenge-platform',

AppCore/index.js

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -489,13 +489,16 @@ class DiscordBotClient {
489489
};
490490
}
491491

492-
switch (url) {
493-
case 'https://checkout.paypal.com/web':
494-
case 'https://discord.com/connections':
495-
case 'https://ptb.discord.com/connections':
496-
case 'https://canary.discord.com/connections':
497-
case `https://localhost:${this.port}/connections`:
498-
return { action: 'deny' };
492+
if (
493+
[
494+
'https://checkout.paypal.com/web',
495+
'https://discord.com/connections',
496+
'https://ptb.discord.com/connections',
497+
'https://canary.discord.com/connections',
498+
`https://localhost:${this.port}/connections`,
499+
].some((e) => url.includes(e))
500+
) {
501+
return { action: 'deny' };
499502
}
500503

501504
try {

0 commit comments

Comments
 (0)