mirror of
https://gitee.com/blossom-editor/blossom.git
synced 2025-12-06 16:58:26 +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
|
||||
*/
|
||||
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
|
||||
return v.toString(16)
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user