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