mirror of
https://github.com/misskey-dev/misskey.git
synced 2024-12-25 22:22:51 +09:00
cleanup(check-https.ts
)
This commit is contained in:
parent
1abb06d2cc
commit
16ffe727cc
@ -1,4 +1,4 @@
|
|||||||
export function checkHttps(url: string) {
|
export function checkHttps(url: string): boolean {
|
||||||
return url.startsWith('https://') ||
|
return url.startsWith('https://') ||
|
||||||
(url.startsWith('http://') && process.env.NODE_ENV !== 'production');
|
(url.startsWith('http://') && process.env.NODE_ENV !== 'production');
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user