Files
brk/website/scripts/utils/env.js
2026-02-13 13:54:09 +01:00

7 lines
290 B
JavaScript

export const localhost = window.location.hostname === "localhost";
const userAgent = navigator.userAgent.toLowerCase();
const iphone = userAgent.includes("iphone");
const ipad = userAgent.includes("ipad");
export const ios = iphone || ipad;
export const canShare = "canShare" in navigator;