refactor(templates): 移除 jinja2 includes 使用
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
function getCookie(name) {
|
||||
let matches = document.cookie.match(
|
||||
new RegExp(
|
||||
"(?:^|; )" +
|
||||
name.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g, "\\$1") +
|
||||
"=([^;]*)",
|
||||
),
|
||||
);
|
||||
return matches ? decodeURIComponent(matches[1]) : undefined;
|
||||
}
|
||||
Reference in New Issue
Block a user