From 82a0f65b256c98c45e37e6cf463bab0eb3a3feb0 Mon Sep 17 00:00:00 2001 From: EM3R50N Date: Mon, 13 Mar 2023 13:07:41 -0400 Subject: [PATCH] Refining search for cookiebar JS script src Changed line 351 from 'cookiebar' to 'cookiebar-latest'. May be a slicker way to deal w/it but this would resolve the issue I had. (https://github.com/ToX82/cookie-bar/issues/136) --- cookiebar-latest.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cookiebar-latest.js b/cookiebar-latest.js index 336af33..bce1f84 100644 --- a/cookiebar-latest.js +++ b/cookiebar-latest.js @@ -348,7 +348,7 @@ function setupCookieBar() { for (i = 0; i < scripts.length; i += 1) { if (scripts[i].hasAttribute('src')) { path = scripts[i].src; - if (path.indexOf('cookiebar') > -1) { + if (path.indexOf('cookiebar-latest') > -1) { return path; } }