浏览代码

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

Yaacov 5 年之前
父节点
当前提交
28dbc2de75
共有 1 个文件被更改,包括 1 次插入1 次删除
  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;