Skip to content

Commit ae5a2b7

Browse files
authored
Merge pull request #1383 from rebane2001/fix-linkvertise
Fix linkvertise r param bypass
2 parents c18666f + 4d981f8 commit ae5a2b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bypasses/linkvertise.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export default class Linkvertise extends BypassDefinition {
77
}
88

99
execute () {
10-
if (window.location.href.toString().includes('?r=')) {
10+
if (/[\?&]r=/.test(window.location.href.toString())) {
1111
const urlParams = new URLSearchParams(window.location.search)
1212
const r = urlParams.get('r')
1313
this.helpers.safelyNavigate(atob(decodeURIComponent(r)))

0 commit comments

Comments
 (0)