mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2022-04-11.git
synced 2024-08-15 00:43:26 +00:00
Update cookie declaration for preserve SameSite directive
This commit is contained in:
parent
1e3f4ed398
commit
8e4959a621
1 changed files with 1 additions and 1 deletions
|
@ -209,7 +209,7 @@ function updateCookie(newVolume, newSpeed) {
|
|||
date.setTime(date.getTime() + 63115200);
|
||||
document.cookie = 'PREFS=' +
|
||||
encodeURIComponent(JSON.stringify({ 'volume': volumeValue, 'speed': speedValue })) +
|
||||
'; expires=' + date.toGMTString() + '; SameSite=Strict; path=/';
|
||||
'; SameSite=Strict; path=/; expires=' + date.toGMTString() + ';';
|
||||
}
|
||||
video_data.params.volume = volumeValue;
|
||||
video_data.params.speed = speedValue;
|
||||
|
|
Loading…
Reference in a new issue