Changes between Initial Version and Version 1 of Ticket #14540, comment 2


Ignore:
Timestamp:
Dec 30, 2011, 7:26:43 AM (10 years ago)
Author:
Eugene Lazutkin
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #14540, comment 2

    initial v1  
    11The problem is the code tries to detect the '''name''' of a process, which is brittle, and error-prone (see {{{navigator.userAgent}}} and associated problems). It is much safer to detect an environment, or prominent features, instead of superficial features like OS-dependent process information.
     2
     3Some detection variants are listed on SO: http://stackoverflow.com/questions/4224606/how-to-check-whether-a-script-is-running-under-node-js