Browse Source

fix(tarteaucitron) select the relevant script to define the right path (bis)

Yaacov 5 years ago
parent
commit
28dbc2de75
1 changed files with 1 additions and 1 deletions
  1. 1 1
      tarteaucitron.js

+ 1 - 1
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;