Browse Source

Prevent error when an ajax request fail

Amauri CHAMPEAUX 10 years ago
parent
commit
5238456fb1
1 changed files with 4 additions and 1 deletions
  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) {}
                 };
             }
         }