mirror of
https://github.com/misskey-dev/misskey.git
synced 2024-12-22 13:05:18 +01:00
5 lines
163 B
TypeScript
5 lines
163 B
TypeScript
|
export function checkHttps(url: string) {
|
||
|
return url.startsWith('https://') ||
|
||
|
(url.startsWith('http://') && process.env.NODE_ENV !== 'production');
|
||
|
}
|