update: anime page

This commit is contained in:
Hakadao
2023-01-29 03:01:41 +08:00
parent 78fc82abdc
commit 17b5db88ec
9 changed files with 178 additions and 62 deletions

View File

@@ -39,3 +39,12 @@ export const getUserID = () => getCookie('DedeUserID')
* get csrf token
*/
export const getCSRF = () => getCookie('bili_jct')
/**
* remove 'http://' or 'https://' from a URL
* @param url
* @returns
*/
export const removeHttpFromUrl = (url: string) => {
return url.replace(/^https?:/, '')
}