aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJohannes Zellner <johannes@cloudron.io>2017-02-09 15:17:26 +0100
committerJohannes Zellner <johannes@cloudron.io>2017-02-09 15:17:26 +0100
commit906f293ea74cd72252f2da71b40b9f792e8621ba (patch)
treedc035d4ff64768b28b0927be62afb331dc7b0c41
parent767595d95870eb7cd37fa041708101eead4039db (diff)
downloadSurfer-906f293ea74cd72252f2da71b40b9f792e8621ba.tar.gz
Surfer-906f293ea74cd72252f2da71b40b9f792e8621ba.tar.zst
Surfer-906f293ea74cd72252f2da71b40b9f792e8621ba.zip
Load latest folder on reload
-rw-r--r--frontend/js/app.js6
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
345window.app = app; 345window.app = app;
346 346
347getProfile(localStorage.accessToken); 347getProfile(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));