From 4bcc719a0a5ac1dfb2c59e2a6274c89328400239 Mon Sep 17 00:00:00 2001 From: William Tam Date: Fri, 27 Sep 2024 16:45:26 -0400 Subject: [PATCH] debug searchparams --- assets/js/jquery.pids.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/assets/js/jquery.pids.js b/assets/js/jquery.pids.js index 76ec55f..bff4871 100644 --- a/assets/js/jquery.pids.js +++ b/assets/js/jquery.pids.js @@ -349,14 +349,16 @@ jQuery(document).ready(function($) { const currentURL = window.location.href; const searchParams = new URLSearchParams(currentURL); if (searchParams.has("mvhash")) { - if (searchParams.get("mvhash") == correct_mvhash) { + console.log("found it"); + let current_mvhash = searchParams.get("mvhash"); + if (current_mvhash == correct_mvhash) { console.log("cachebusting not required"); return; } } // reload the page with the correct querystring let urlwithoutqs = currentURL.split('?')[0]; - window.location.replace(urlwithoutqs + "?mvhash=" + correct_mvhash); + //window.location.replace(urlwithoutqs + "?mvhash=" + correct_mvhash); } if (window.location.href.indexOf(userinfolink) > -1) {