From 5238456fb1c0bc4346a053c272a4a1c99fcdf030 Mon Sep 17 00:00:00 2001 From: Amauri CHAMPEAUX Date: Fri, 6 Mar 2015 21:09:22 +0100 Subject: [PATCH] Prevent error when an ajax request fail --- tarteaucitron.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tarteaucitron.js b/tarteaucitron.js index f6eb47a..f9d903b 100644 --- a/tarteaucitron.js +++ b/tarteaucitron.js @@ -79,7 +79,10 @@ var tarteaucitron = { setTimeout(tarteaucitronProLoadServices, 1000); } } - origOpen.apply(this, arguments); + + try { + origOpen.apply(this, arguments); + } catch (err) {} }; } }