]> Untitled Git - lemmy-ui.git/blob - src/shared/utils/env/get-secure.ts
Merge remote-tracking branch 'origin/main' into feat/add-post-body-preview-to-desktop
[lemmy-ui.git] / src / shared / utils / env / get-secure.ts
1 import { isBrowser } from "@utils/browser";
2
3 export default function getSecure() {
4   return (
5     isBrowser()
6       ? window.location.protocol.includes("https")
7       : process.env.LEMMY_UI_HTTPS === "true"
8   )
9     ? "s"
10     : "";
11 }