summaryrefslogtreecommitdiff
path: root/libs/music
diff options
context:
space:
mode:
authorGravatar Chris Xiong <chirs241097@gmail.com> 2021-12-08 03:47:33 +0800
committerGravatar Chris Xiong <chirs241097@gmail.com> 2021-12-08 03:47:33 +0800
commit58666c3ad32e0828aa30781aac8702539314d053 (patch)
tree54f5c42981001a7ab4697819c427cd3a50359dff /libs/music
parent154b63534baf812bf9a5234774daf09952556285 (diff)
downloadweb-58666c3ad32e0828aa30781aac8702539314d053.tar.xz
help someone vandalized my code.
Diffstat (limited to 'libs/music')
-rw-r--r--libs/music/player.d/main_static.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/music/player.d/main_static.js b/libs/music/player.d/main_static.js
index 7ac79f1..b0f42ae 100644
--- a/libs/music/player.d/main_static.js
+++ b/libs/music/player.d/main_static.js
@@ -14,7 +14,7 @@ const sh={
newelem:function(e)
{return document.createElement(e);},
getcookie:function(key)
- {return document.cookie.replace(new RegExp('(?:(?:^|.*;\\s*)'+key+'\\s*\\=\\s*([^;]*).*$)|^.*$'),'$2');},
+ {return document.cookie.replace(new RegExp('(?:(?:^|.*;\\s*)'+key+'\\s*\\=\\s*([^;]*).*$)|^.*$'),'$1');},
setcookie:function(key,value)
{return document.cookie=`${key}=${value};max-age=31536000`;},
};