mirror of
https://github.com/rr-/szurubooru.git
synced 2025-07-17 08:26:24 +00:00
client/tags: fix handling malformed tag export
This commit is contained in:
@ -54,10 +54,10 @@ for (let controller of controllers) {
|
||||
|
||||
const tags = require('./tags.js');
|
||||
const api = require('./api.js');
|
||||
Promise.all([tags.refreshExport(), api.loginFromCookies()])
|
||||
.then(() => {
|
||||
tags.refreshExport(); // we don't care about errors
|
||||
api.loginFromCookies().then(() => {
|
||||
router.start();
|
||||
}).catch(errorMessage => {
|
||||
}, errorMessage => {
|
||||
if (window.location.href.indexOf('login') !== -1) {
|
||||
api.forget();
|
||||
router.start();
|
||||
|
Reference in New Issue
Block a user