mirror of
https://github.com/BewlyBewly/BewlyBewly.git
synced 2025-04-14 13:15:29 +00:00
update: anime page
This commit is contained in:
@@ -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?:/, '')
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user