From cd40229d77394f746926bfc966aa6b218c2c2ec8 Mon Sep 17 00:00:00 2001 From: Moe Date: Sat, 19 Nov 2022 12:37:33 -0800 Subject: [PATCH] Make dashboardOptions unique to logged in user --- web/assets/js/bs5.dashboard-base.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/assets/js/bs5.dashboard-base.js b/web/assets/js/bs5.dashboard-base.js index e60119bc..41db6a67 100644 --- a/web/assets/js/bs5.dashboard-base.js +++ b/web/assets/js/bs5.dashboard-base.js @@ -154,7 +154,7 @@ const mergeDeep = function(...objects) { }, {}); } function dashboardOptions(r,rr,rrr){ - if(!rrr){rrr={};};if(typeof rrr === 'string'){rrr={n:rrr}};if(!rrr.n){rrr.n='ShinobiOptions_'+location.host} + if(!rrr){rrr={};};if(typeof rrr === 'string'){rrr={n:rrr}};if(!rrr.n){rrr.n='ShinobiOptions_'+location.host+'_'+$user.ke+$user.uid} ii={o:localStorage.getItem(rrr.n)};try{ii.o=JSON.parse(ii.o)}catch(e){ii.o={}} if(!ii.o){ii.o={}} if(r&&rr&&!rrr.x){