mirror of
https://github.com/rr-/szurubooru.git
synced 2025-07-17 08:26:24 +00:00
Switched to spaces
This commit is contained in:
@ -2,29 +2,29 @@ var App = App || {};
|
||||
|
||||
App.Bootstrap = function(auth, router, promise, presenterManager) {
|
||||
|
||||
promise.wait(presenterManager.init())
|
||||
.then(function() {
|
||||
promise.wait(auth.tryLoginFromCookie())
|
||||
.then(startRouting)
|
||||
.fail(function(error) {
|
||||
promise.wait(auth.loginAnonymous())
|
||||
.then(startRouting)
|
||||
.fail(function() {
|
||||
console.log(arguments);
|
||||
window.alert('Fatal authentication error');
|
||||
});
|
||||
});
|
||||
}).fail(function() {
|
||||
console.log(arguments);
|
||||
});
|
||||
promise.wait(presenterManager.init())
|
||||
.then(function() {
|
||||
promise.wait(auth.tryLoginFromCookie())
|
||||
.then(startRouting)
|
||||
.fail(function(error) {
|
||||
promise.wait(auth.loginAnonymous())
|
||||
.then(startRouting)
|
||||
.fail(function() {
|
||||
console.log(arguments);
|
||||
window.alert('Fatal authentication error');
|
||||
});
|
||||
});
|
||||
}).fail(function() {
|
||||
console.log(arguments);
|
||||
});
|
||||
|
||||
function startRouting() {
|
||||
try {
|
||||
router.start();
|
||||
} catch (err) {
|
||||
console.log(err);
|
||||
}
|
||||
}
|
||||
function startRouting() {
|
||||
try {
|
||||
router.start();
|
||||
} catch (err) {
|
||||
console.log(err);
|
||||
}
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user