mirror of
https://github.com/Kuingsmile/PicList.git
synced 2026-05-11 18:10:32 +08:00
🐛 Fix: confused port number auto increasing when opening a new PicGo app
This commit is contained in:
@@ -17,3 +17,9 @@ export const handleResponse = ({
|
||||
response.write(JSON.stringify(body))
|
||||
response.end()
|
||||
}
|
||||
|
||||
export const ensureHTTPLink = (url: string): string => {
|
||||
return url.startsWith('http')
|
||||
? url
|
||||
: `http://${url}`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user