From 58666c3ad32e0828aa30781aac8702539314d053 Mon Sep 17 00:00:00 2001 From: Chris Xiong Date: Wed, 8 Dec 2021 03:47:33 +0800 Subject: help someone vandalized my code. --- libs/music/player.d/main_static.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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`;}, }; -- cgit v1.2.3