cleanup(check-https.ts)

This commit is contained in:
okayurisotto 2023-07-02 11:59:40 +09:00
parent 1abb06d2cc
commit 16ffe727cc

View File

@ -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');
} }