mirror of
https://github.com/rr-/szurubooru.git
synced 2025-07-17 08:26:24 +00:00
Fixed top navigation loading glitch
A race condition occurred - router could execute promise.abortAll() even when top navigation didn't fully load. This caused top navigation presenter to throw "broken promise" error, which is reserved for promises made after core modules have been loaded.
This commit is contained in:
@ -2,9 +2,9 @@ var App = App || {};
|
||||
|
||||
App.Bootstrap = function(auth, router, util, promise, presenterManager) {
|
||||
|
||||
presenterManager.init();
|
||||
|
||||
promise.wait(auth.tryLoginFromCookie())
|
||||
promise.wait(
|
||||
auth.tryLoginFromCookie(),
|
||||
presenterManager.init())
|
||||
.then(startRouting)
|
||||
.fail(function(error) {
|
||||
promise.wait(auth.loginAnonymous())
|
||||
|
Reference in New Issue
Block a user