mirror of
https://github.com/ente-io/ente.git
synced 2025-06-14 04:28:53 +00:00
14 lines
273 B
TypeScript
14 lines
273 B
TypeScript
import isElectron from "is-electron";
|
|
|
|
export function runningInBrowser() {
|
|
return typeof window !== "undefined";
|
|
}
|
|
|
|
export function runningInWorker() {
|
|
return typeof importScripts === "function";
|
|
}
|
|
|
|
export function runningInElectron() {
|
|
return isElectron();
|
|
}
|