From 2a56efd353f1d8418297e0dead424c3020eed997 Mon Sep 17 00:00:00 2001 From: Danny Bessems Date: Thu, 20 Jun 2019 08:02:42 +0000 Subject: [PATCH] added placeholders for error handling in CrossDomainLogin --- public/misc/script.index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/public/misc/script.index.js b/public/misc/script.index.js index 514079c..cc1f548 100644 --- a/public/misc/script.index.js +++ b/public/misc/script.index.js @@ -51,6 +51,8 @@ $(document).ready(function(){ } }).done(function() { NProgress.inc(1 / XHR.length); + }).fail(function() { + // Should check why this failed (timeout or bad request?), and if this is the origin domain, take action })); }); $.when.apply($, XHR).then(function(){