stack

Home > @infiniteobjects/core-library > Context

Context class

Utilities to understand the context of the current script

Signature:

export declare class Context 

Methods

Method Modifiers Description
isBrowser() static Just checks if the window is defined
isElectron() static Is this running inside of electron?
isElectronMain() static Is this an electron script?
isElectronRenderer() static Is this an electron window?
isNode() static Only Node.JS has a process variable that is of [[Class]] process