diff options
author | Johannes Zellner <johannes@cloudron.io> | 2017-02-09 15:17:26 +0100 |
---|---|---|
committer | Johannes Zellner <johannes@cloudron.io> | 2017-02-09 15:17:26 +0100 |
commit | 906f293ea74cd72252f2da71b40b9f792e8621ba (patch) | |
tree | dc035d4ff64768b28b0927be62afb331dc7b0c41 | |
parent | 767595d95870eb7cd37fa041708101eead4039db (diff) | |
download | Surfer-906f293ea74cd72252f2da71b40b9f792e8621ba.tar.gz Surfer-906f293ea74cd72252f2da71b40b9f792e8621ba.tar.zst Surfer-906f293ea74cd72252f2da71b40b9f792e8621ba.zip |
Load latest folder on reload
-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)); |