Cleanup boot.js and fix rllayout cookie

This commit is contained in:
the-djmaze 2022-02-08 14:15:22 +01:00
parent 827421e116
commit f3717815e1
3 changed files with 37 additions and 41 deletions

View file

@ -114,7 +114,7 @@ export class SystemDropDownUserView extends AbstractViewRight {
toggleLayout()
{
const mobile = !ThemeStore.isMobile();
doc.cookie = 'rllayout=' + (mobile ? 'mobile' : 'desktop');
doc.cookie = 'rllayout=' + (mobile ? 'mobile' : 'desktop') + '; samesite=strict';
ThemeStore.isMobile(mobile);
leftPanelDisabled(mobile);
}