Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

Is there a way to detect private mode using javascript?

more options

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.

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)

more options

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.

more options

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.