inIncognitoContext property

bool? get inIncognitoContext

True for content scripts running inside incognito tabs, and for extension pages running inside an incognito process. The latter only applies to extensions with 'split' incognito_behavior.

Implementation

bool? get inIncognitoContext => $js.chrome.extension.inIncognitoContext;