diff options
Diffstat (limited to 'frontend/js')
-rw-r--r-- | frontend/js/app.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/frontend/js/app.js b/frontend/js/app.js index de61dcf..befed24 100644 --- a/frontend/js/app.js +++ b/frontend/js/app.js | |||
@@ -344,7 +344,11 @@ var app = new Vue({ | |||
344 | 344 | ||
345 | window.app = app; | 345 | window.app = app; |
346 | 346 | ||
347 | getProfile(localStorage.accessToken); | 347 | getProfile(localStorage.accessToken, function (error) { |
348 | if (error) return console.error(error); | ||
349 | |||
350 | loadDirectory(window.location.hash.slice(1)); | ||
351 | }); | ||
348 | 352 | ||
349 | $(window).on('hashchange', function () { | 353 | $(window).on('hashchange', function () { |
350 | loadDirectory(window.location.hash.slice(1)); | 354 | loadDirectory(window.location.hash.slice(1)); |