1
0
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:
Patrik J. Braun 2021-05-21 16:40:34 +02:00
parent 21908732c6
commit 91981064e7

View File

@ -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);
}
}