mirror of
https://activitypub.software/TransFem-org/Sharkey.git
synced 2024-12-16 14:21:57 +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');
|
||
|
}
|