From 243f6f898e1c4e892e3a19a85a14dd78a7713ba4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Odd=20Str=C3=A5b=C3=B8?= Date: Wed, 8 May 2019 07:17:30 +0200 Subject: [PATCH] Implement `.finally` as `.catch().then` as suggested. --- src/components/appRouter.js | 1 + src/controllers/loginpage.js | 1 + 2 files changed, 2 insertions(+) diff --git a/src/components/appRouter.js b/src/components/appRouter.js index 66c149b997..d79f3544a4 100644 --- a/src/components/appRouter.js +++ b/src/components/appRouter.js @@ -342,6 +342,7 @@ define(['loading', 'globalize', 'events', 'viewManager', 'layoutManager', 'skinM hashbang: options.hashbang !== false, enableHistory: enableHistory() }); + }).catch().then(function() { loading.hide(); }); } diff --git a/src/controllers/loginpage.js b/src/controllers/loginpage.js index b87eca9f93..a7acb97130 100644 --- a/src/controllers/loginpage.js +++ b/src/controllers/loginpage.js @@ -156,6 +156,7 @@ define(["apphost", "appSettings", "dom", "connectionManager", "loading", "cardSt view.querySelector("#txtManualName").value = ""; showManualForm(view, false, false); } + }).catch().then(function() { loading.hide(); });