Skip to content

Commit

Permalink
better js
Browse files Browse the repository at this point in the history
  • Loading branch information
tamw-wnet committed Sep 27, 2024
1 parent 79d2aed commit 315d4af
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions assets/js/jquery.pids.js
Original file line number Diff line number Diff line change
Expand Up @@ -346,15 +346,15 @@ jQuery(document).ready(function($) {
return;
}
const correct_mvhash = Cookies.get('pbsoauth_mvhash');
const currentURL = window.location();
const currentURL = window.location;
const searchParams = new URLSearchParams(currentURL);
if (searchParams.has("mvhash")) {
if (searchParams.get("mvhash") == correct_mvhash) {
return;
}
}
// reload the page with the correct querystring
let urlwithoutqs = window.location.href.split('?')[0];
let urlwithoutqs = currentURL.href.split('?')[0];
console.log(urlwithoutqs + "?mvhash=" + correct_mvhash);
//window.location.replace(urlwithoutqs + "?mvhash=" + correct_mvhash);
}
Expand Down

0 comments on commit 315d4af

Please sign in to comment.