diff options
Diffstat (limited to 'libs')
-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`;}, }; |