mirror of
https://github.com/truewhile/MeBox.git
synced 2026-10-04 12:36:37 +08:00
refactor: split strm page hooks
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
export function apiErrorMessage(err: unknown, fallback: string): string {
|
||||
return (err as { response?: { data?: { error?: string } } })?.response?.data?.error ?? fallback
|
||||
}
|
||||
|
||||
export function isHTTPURL(value: string): boolean {
|
||||
return /^https?:\/\//i.test(value)
|
||||
}
|
||||
Reference in New Issue
Block a user