ソースを参照

Prevent error when an ajax request fail

Amauri CHAMPEAUX 10 年 前
コミット
5238456fb1
1 ファイル変更4 行追加1 行削除
  1. 4 1
      tarteaucitron.js

+ 4 - 1
tarteaucitron.js

@@ -79,7 +79,10 @@ var tarteaucitron = {
                             setTimeout(tarteaucitronProLoadServices, 1000);
                         }
                     }
-                    origOpen.apply(this, arguments);
+                    
+                    try {
+                        origOpen.apply(this, arguments);
+                    } catch (err) {}
                 };
             }
         }