faisalman / ua-parser-js

"Unmask Your Traffic" - UAParser.js: The Essential Web Development Tool for User-Agent Detection
https://uaparser.dev/
GNU Affero General Public License v3.0
9.28k stars 1.19k forks source link

Detect incognito mode #727

Open jlarmstrongiv opened 6 months ago

jlarmstrongiv commented 6 months ago

Is your feature request related to a problem? Please describe. My website depends on certain features, like OPFS, which only works in some browsers in incognito mode. Being able to detect usage of incognito mode will allow me to properly warn users that my site literally will break, e.g. in Safari in Incognito mode.

Describe the solution you'd like Add an incognito function to either the UAParser API Reference or Submodules

Describe alternatives you've considered Using a different library

Additional context I support you with both business and enterprise licenses