mirror of
https://activitypub.software/TransFem-org/Sharkey
synced 2024-12-03 19:27:28 +00: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');
|
||
|
}
|