Update cookie declaration for preserve SameSite directive

This commit is contained in:
Féry Mathieu (Mathius) 2022-02-22 13:15:53 +01:00
parent 1e3f4ed398
commit 8e4959a621
No known key found for this signature in database
GPG key ID: 935858CF779FB2CE

View file

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