Skip to content

Commit

Permalink
Fix linkvertise bypass
Browse files Browse the repository at this point in the history
  • Loading branch information
rebane2001 authored Mar 31, 2024
1 parent c18666f commit 4d981f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bypasses/linkvertise.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 7,7 @@ export default class Linkvertise extends BypassDefinition {
}

execute () {
if (window.location.href.toString().includes('?r=')) {
if (/[\?&]r=/.test(window.location.href.toString())) {
const urlParams = new URLSearchParams(window.location.search)
const r = urlParams.get('r')
this.helpers.safelyNavigate(atob(decodeURIComponent(r)))
Expand Down

0 comments on commit 4d981f8

Please sign in to comment.