Explorar o código

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

Yaacov %!s(int64=5) %!d(string=hai) anos
pai
achega
28dbc2de75
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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;