UNPKG

react-unity-webgl

Version:

React Unity WebGL provides a modern solution for embedding Unity WebGL builds in your React Application while providing advanced APIs for two way communication and interaction between Unity and React.

9 lines (8 loc) 371 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.isBrowserEnvironment = void 0; /** * Defines if the current environment is a browser environment. This is * determined by checking if the `window` and `document` objects are defined. */ exports.isBrowserEnvironment = typeof window !== "undefined" && typeof document !== "undefined";