mirror of
https://gitee.com/blossom-editor/blossom.git
synced 2025-12-07 09:18:32 +08:00
fix: picture viewer
This commit is contained in:
parent
79ee94941f
commit
c285f25567
@ -418,7 +418,7 @@ export const getFilePrefix = (name: string): string => {
|
|||||||
* @returns
|
* @returns
|
||||||
*/
|
*/
|
||||||
export const isHttp = (url: string) => {
|
export const isHttp = (url: string) => {
|
||||||
return url.startsWith('http://')
|
return url.startsWith('http://') || url.startsWith('https://')
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -440,4 +440,4 @@ export const uuid = (): string => {
|
|||||||
v = c == 'x' ? r : (r & 0x3) | 0x8
|
v = c == 'x' ? r : (r & 0x3) | 0x8
|
||||||
return v.toString(16)
|
return v.toString(16)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user