MCPcopy Create free account
hub / github.com/MaterializeInc/materialize / getIsBrowser

Function getIsBrowser

console/src/config/AppConfig.ts:42–46  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

40export const NOT_SUPPORTED_MESSAGE = "Not supported in this deployment mode";
41
42function getIsBrowser() {
43 return (
44 typeof window !== "undefined" && typeof window.document !== "undefined"
45 );
46}
47
48function getConsoleUrl(isBrowser: boolean) {
49 return isBrowser

Callers 2

CloudAppConfigClass · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected