Windows 10 reached EOS (end of support) on October 14, 2025. If you are on Windows 10, see this article.

Avatar for Username

Поиск в поддержке

Избегайте мошенников, выдающих себя за службу поддержки. Мы никогда не попросим вас позвонить, отправить текстовое сообщение или поделиться личной информацией. Сообщайте о подозрительной активности, используя функцию «Пожаловаться».

Подробнее
Архивировано

Is there a way to detect private mode using javascript?

Gkarthik

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.

Все ответы (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.