From 8b4a8eff8385c20bba145ad23c5b74072bba5abb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Ven=C3=A2ncio?= <45434454+jvnnc@users.noreply.github.com> Date: Mon, 18 Jul 2022 13:21:10 -0300 Subject: [PATCH] removed localstorage bypass. (#8702) Co-authored-by: Jose --- modules/naveggIdSystem.js | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/modules/naveggIdSystem.js b/modules/naveggIdSystem.js index d7f5f712252..a292b42f144 100644 --- a/modules/naveggIdSystem.js +++ b/modules/naveggIdSystem.js @@ -34,17 +34,6 @@ function readnavIDFromCookie() { return storage.cookiesAreEnabled ? (storage.findSimilarCookies('nav') ? storage.findSimilarCookies('nav')[0] : null) : null; } -function readnvgnavFromLocalStorage() { - var i; - const query = /[nvga]{3}\d+/; - for (i in window.localStorage) { - if (i.match(query) || (!query && typeof i === 'string')) { - const naveggId = storage.getDataFromLocalStorage(i.match(query).input).split('|')[0] - return naveggId.split('_')[0]; - } - } -} - /** @type {Submodule} */ export const naveggIdSubmodule = { /** @@ -73,7 +62,7 @@ export const naveggIdSubmodule = { getId() { let naveggIdStringFromLocalStorage = null; if (storage.localStorageIsEnabled) { - naveggIdStringFromLocalStorage = readnaveggIdFromLocalStorage() || readnvgnavFromLocalStorage(); + naveggIdStringFromLocalStorage = readnaveggIdFromLocalStorage(); } const naveggIdString = naveggIdStringFromLocalStorage || readnaveggIDFromCookie() || readoldnaveggIDFromCookie() || readnvgIDFromCookie() || readnavIDFromCookie();