Navigator
interface
interface NavigatorProvides information about the Ende runtime environment and the system
on which it's running. Similar to the browser Navigator object but
adapted for the Ende context.
Example
// Check available CPU cores
console.log(`Available CPU cores: ${navigator.hardwareConcurrency}`);
// Check user agent
console.log(`User agent: ${navigator.userAgent}`);
// Check language settings
console.log(`Language: ${navigator.language}`);
variable
var Navigator: { … }Constructor for Navigator objects.
Note: This constructor cannot be used to create new Navigator instances in Ende.
The global navigator object is pre-defined in the runtime environment.
Constructors
constructor
new Navigator(): neverProperties
gpu
readonly gpu: GPUhardwareConcurrency
readonly hardwareConcurrency: numberuserAgent
readonly userAgent: stringlanguage
readonly language: stringlanguages
readonly languages: string[]platform
readonly platform: stringuserAgentData
readonly userAgentData: NavigatorUADataprototype
readonly prototype: Navigatornavigator
variable
var navigator: NavigatorProvides access to the Ende runtime's Navigator interface, which contains
information about the environment in which the script is running.
Example
// Log information about the runtime environment
console.log(`Hardware concurrency: ${navigator.hardwareConcurrency}`);
console.log(`User agent: ${navigator.userAgent}`);