diff options
author | Chris Xiong <chirs241097@gmail.com> | 2021-12-08 03:47:33 +0800 |
---|---|---|
committer | Chris Xiong <chirs241097@gmail.com> | 2021-12-08 03:47:33 +0800 |
commit | 58666c3ad32e0828aa30781aac8702539314d053 (patch) | |
tree | 54f5c42981001a7ab4697819c427cd3a50359dff | |
parent | 154b63534baf812bf9a5234774daf09952556285 (diff) | |
download | web-58666c3ad32e0828aa30781aac8702539314d053.tar.xz |
help someone vandalized my code.
-rw-r--r-- | libs/music/player.d/main_static.js | 2 |
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`;}, }; |