aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorneobooru2019-07-22 23:57:40 +0200
committerShyam Sunder2019-07-22 19:58:16 -0400
commit8f0835f27b8469859ec3c8723b8199f106b97ca5 (patch)
treebe1b3665b741c5f8e80a1c937eea024196cc87e8
parentb8699d59d2fdbdf9975ef408745458b4997a6adf (diff)
client/tag_categories: load tag_categories after (attempted) login
Fixes #262
-rw-r--r--client/js/main.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/client/js/main.js b/client/js/main.js
index 5ddf26f..dd974fd 100644
--- a/client/js/main.js
+++ b/client/js/main.js
@@ -28,7 +28,6 @@ router.enter(
const tags = require('./tags.js');
const api = require('./api.js');
-tags.refreshCategoryColorMap(); // we don't care about errors
api.fetchConfig().then(() => {
// register controller routes
@@ -61,6 +60,7 @@ api.fetchConfig().then(() => {
window.alert('Could not fetch basic configuration from server');
}).then(() => {
api.loginFromCookies().then(() => {
+ tags.refreshCategoryColorMap();
router.start();
}, error => {
if (window.location.href.indexOf('login') !== -1) {

© 2015 - 2026 Jakob L. Kreuze