mirror of
https://github.com/yogstation13/Yogstation.git
synced 2025-02-26 09:04:50 +00:00
[MIRROR] Fixes goonchat cookies not saving properly. (#4528)
* Fixes goonchat cookies not saving properly. * Merge pull request #42856 from DominikPanic/goonchatcookies Fixes goonchat cookies not saving properly.
This commit is contained in:
committed by
monster860
parent
efb536f016
commit
8b501882b8
@@ -430,7 +430,7 @@ function setCookie(cname, cvalue, exdays) {
|
||||
var d = new Date();
|
||||
d.setTime(d.getTime() + (exdays*24*60*60*1000));
|
||||
var expires = 'expires='+d.toUTCString();
|
||||
document.cookie = cname + '=' + cvalue + '; ' + expires;
|
||||
document.cookie = cname + '=' + cvalue + '; ' + expires + "; path=/";
|
||||
}
|
||||
|
||||
function getCookie(cname) {
|
||||
|
||||
Reference in New Issue
Block a user