mirror of
https://github.com/Kuingsmile/PicList.git
synced 2026-06-01 01:29:37 +08:00
🐛 Fix: url uploader bug
This commit is contained in:
1
src/universal/types/types.d.ts
vendored
1
src/universal/types/types.d.ts
vendored
@@ -179,6 +179,7 @@ interface IGuiApi {
|
||||
showMessageBox: (options?: IShowMessageBoxOption) => Promise<IShowMessageBoxResult>
|
||||
}
|
||||
interface IShowInputBoxOption {
|
||||
value?: string
|
||||
title: string
|
||||
placeholder: string
|
||||
}
|
||||
|
||||
1
src/universal/utils/common.ts
Normal file
1
src/universal/utils/common.ts
Normal file
@@ -0,0 +1 @@
|
||||
export const isUrl = (url: string): boolean => (url.startsWith('http://') || url.startsWith('https://'))
|
||||
Reference in New Issue
Block a user