PhpStorm 2019.3 Help

Code Inspection: Platform detection

Reports common JavaScript patterns for detectingthe browser or operating system in which the script is being run. In additionto pointing out non-portable constructs, these platform detection patternsare often incomplete and easily fooled. For most cases, detection of individualenvironment features is preferable to attempting to detect the entire platform.Patterns detected includedocument.all,document.layers,navigator.userAgent,navigator.oscpu,navigator.appName,navigator.appCodeName, andnavigator.platform

Last modified: 27 February 2020