hide loading even if connection fails at start

This commit is contained in:
vitorsemeano 2019-02-27 21:54:48 +00:00
parent 468b9e881b
commit c7ea132f07

View File

@ -336,8 +336,6 @@ define(['loading', 'globalize', 'events', 'viewManager', 'layoutManager', 'skinM
firstConnectionResult = result;
loading.hide();
options = options || {};
page({
@ -345,6 +343,8 @@ define(['loading', 'globalize', 'events', 'viewManager', 'layoutManager', 'skinM
hashbang: options.hashbang !== false,
enableHistory: enableHistory()
});
}).finally(function () {
loading.hide();
});
}