Skip to content

Commit

Permalink
remove not needed code
Browse files Browse the repository at this point in the history
  • Loading branch information
Kerwin Sun authored and Kerwin Sun committed Sep 10, 2024
1 parent 1fcef35 commit d43b625
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions src/hello.js
Original file line number Diff line number Diff line change
Expand Up @@ -1521,17 +1521,10 @@ hello.utils.extend(hello.utils, {

return;
}

function isValidUrl(url) {
var regexp = /^https?:/;
return regexp.test(url)

// If `HELLOJS_REDIRECT_URL` is defined in the window context, validate that the URL matches it.
&& (
!Object.prototype.hasOwnProperty.call(window, 'HELLOJS_REDIRECT_URL')
||
url.match(window.HELLOJS_REDIRECT_URL)
);
return regexp.test(url);
}

// Trigger a callback to authenticate
Expand Down

0 comments on commit d43b625

Please sign in to comment.