Is there a way to detect private mode using javascript?
In my app, I want to display a message to the users to not to use private mode. I want to do this because tracking protection feature is disabling the access to one my urls which I am hitting when application loads, this is breaking the app, so I want to alert user to not to use private mode.
All Replies (2)
Hi
This sounds more like a query about web development than a support issue with Firefox.
I recommend you ask in Stack Overflow. The team of experts there should be able to help you with this.
The effect on your application is what you will want to test for, for example, by looking for whether an object you create in that script exists. Then you can alert the user that there is a problem and to consider whether it is Firefox's Tracking Protection, or an extension like Disconnect, Ghostery, Privacy Badger, etc.