]> git.immae.eu Git - perso/Immae/Projets/Nodejs/Surfer.git/commitdiff
Load latest folder on reload
authorJohannes Zellner <johannes@cloudron.io>
Thu, 9 Feb 2017 14:17:26 +0000 (15:17 +0100)
committerJohannes Zellner <johannes@cloudron.io>
Thu, 9 Feb 2017 14:17:26 +0000 (15:17 +0100)
frontend/js/app.js

index de61dcf8f522aa48c49d929feba1e52e0891bc30..befed24f251ce893642c436df4a8241ccb972785 100644 (file)
@@ -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));