mirror of
https://github.com/xuthus83/pigallery2.git
synced 2024-11-03 21:04:03 +08:00
increase advanced cookie lifespan to 50 years
This commit is contained in:
parent
21908732c6
commit
91981064e7
@ -62,7 +62,8 @@ export class AdminComponent implements OnInit, AfterViewInit {
|
||||
}
|
||||
|
||||
modeToggle(): void {
|
||||
this.cookieService.set(CookieNames.advancedSettings, this.simplifiedMode ? 'false' : 'true');
|
||||
// save it for some years
|
||||
this.cookieService.set(CookieNames.advancedSettings, this.simplifiedMode ? 'false' : 'true', 365 * 50);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user