How to determine incognito mode from extension background

I have indicated incognito as split in my manifest file.

http://developer.chrome.com/extensions/manifest.html#incognito

So, if the application or extension contains a help page that will also work incognito in the process. This process incognito goes along the normal process, but has a separate storage of cookies stored in memory.

So, how can I determine if the background page is working incognito in the process.

+5
source share
1 answer

Found a solution.

You can check it using

chrome.extension.inIncognitoContext

http://developer.chrome.com/dev/extensions/extension.html#property-inIncognitoContext

+9
source

All Articles