Versions
VersionInfo
Versions includes several keys for different parts of the browser you can get information on. Each value is an object containing:
name
: Name (Chrome, Chromium, Firefox, etc)version
: Raw version as a string given by the browsermajor
: Major (x.) version as a number for easy checking
product
Version information about the product (browser) in use.
Examples
index.js
Window.versions.product
// Chrome example: { name: 'Chrome', version: '107.0.5304.107', major: 107 }
// Firefox Nightly example: { name: 'Firefox Nightly', version: '110.0a1', major: 110 }
engine
Version information about the browser engine (Chromium/Firefox) in use. Firefox is referred to as using the “firefox” engine rather than Gecko as forks are based on Firefox directly instead of just Gecko.
Examples
index.js
Window.versions.engine
// Chrome example: { name: 'chromium', version: '107.0.5304.107', major: 107 }
// Firefox Nightly example: { name: 'firefox', version: '110.0a1', major: 110 }
jsEngine
Version information about the browser’s JS engine (V8/SpiderMonkey) in use.
Examples
index.js
Window.versions.jsEngine
// Chrome example: { name: 'v8', version: '10.7.193.22', major: 10 }
// Firefox Nightly example: { name: 'spidermonkey', version: '1.8.5', major: 1 }