From 28dbc2de75b437bccee8470dc42836b2ef9e8ef0 Mon Sep 17 00:00:00 2001 From: Yaacov Date: Wed, 4 Mar 2020 00:54:18 +0100 Subject: [PATCH] fix(tarteaucitron) select the relevant script to define the right path (bis) --- tarteaucitron.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tarteaucitron.js b/tarteaucitron.js index cf8988f..5b80be6 100644 --- a/tarteaucitron.js +++ b/tarteaucitron.js @@ -3,7 +3,7 @@ var scripts = document.getElementsByTagName('script'), thisScript = null; for (var i = 0, il = scripts.length; i < il; ++i) { - if ( scripts[i].getAttribute('src').indexOf('tarteaucitron.js') >= 0) { + if ( scripts[i].getAttribute('src').indexOf('tarteaucitron') >= 0) { // should always find this script thisScript = scripts[i]; break;