Skip to content

Commit 024e981

Browse files
author
Sachin Maheshwari
committed
adding pattern for local testing
1 parent 08578b3 commit 024e981

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

web-assets/js/setupAuth0WithRedirect.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ const authSetup = function () {
4646
const mode = qs['mode'] || 'signIn';
4747
let returnAppUrl = handleSpecificReturnUrl(qs['retUrl'], 'retUrl');
4848
let appUrl = qs['appUrl'] || false;
49-
const discord_pattern = 'https://tc-topbot-1.herokuapp.com/';
49+
const discord_patterns = ['https://tc-topbot-1.herokuapp.com/', 'webhooks'];
5050

5151
if (utmSource &&
5252
(utmSource != 'undefined') &&
@@ -705,7 +705,7 @@ const authSetup = function () {
705705
};
706706

707707
function hookRedirect(redirect_url) {
708-
if (redirect_url && (redirect_url.indexOf(discord_pattern) > -1)) {
708+
if (redirect_url && ((redirect_url.indexOf(discord_patterns[0]) > -1) || (redirect_url.indexOf(discord_patterns[1]) > -1) ) ) {
709709
try {
710710
var newUrl = new URL(redirect_url);
711711
newUrl.searchParams.append(

0 commit comments

Comments
 (0)