X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=frontend%2Fjs%2Fapp.js;h=7a80ba72d1849666da61d5038be3fc0fe947f565;hb=4dce7a3d2e99f489245bc8b4c6611061b78aa8cf;hp=0a6ada16c788cae357568b8625cea425993f99ff;hpb=996e13b351ddcc106e4700adc6257d0815e2cd23;p=perso%2FImmae%2FProjets%2FNodejs%2FSurfer.git diff --git a/frontend/js/app.js b/frontend/js/app.js index 0a6ada1..7a80ba7 100644 --- a/frontend/js/app.js +++ b/frontend/js/app.js @@ -288,7 +288,7 @@ var app = new Vue({ getProfile(result.body.accessToken, function (error) { if (error) return console.error(error); - loadDirectory(window.location.hash.slice(1)); + loadDirectory(decode(window.location.hash.slice(1))); }); }); }, @@ -428,11 +428,11 @@ var app = new Vue({ getProfile(localStorage.accessToken, function (error) { if (error) return console.error(error); - loadDirectory(window.location.hash.slice(1)); + loadDirectory(decode(window.location.hash.slice(1))); }); $(window).on('hashchange', function () { - loadDirectory(window.location.hash.slice(1)); + loadDirectory(decode(window.location.hash.slice(1))); }); })();