Home > @infiniteobjects/core-library-web > Context
Utilities to understand the context of the current script
Signature:
export declare class Context
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 |