From 906f293ea74cd72252f2da71b40b9f792e8621ba Mon Sep 17 00:00:00 2001 From: Johannes Zellner Date: Thu, 9 Feb 2017 15:17:26 +0100 Subject: [PATCH] Load latest folder on reload --- frontend/js/app.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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({ window.app = app; -getProfile(localStorage.accessToken); +getProfile(localStorage.accessToken, function (error) { + if (error) return console.error(error); + + loadDirectory(window.location.hash.slice(1)); +}); $(window).on('hashchange', function () { loadDirectory(window.location.hash.slice(1)); -- 2.41.0