@sesamy/sesamy-js 1.27.0 → 1.28.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -893,6 +893,35 @@ detectAdblock()
893
893
  - The function creates a set of HTML `<div>` elements with IDs typically used by ad containers (e.g., 'AdHeader', 'AdContainer', etc.).
894
894
  - These elements are appended to the body of the document and their visibility is checked after a short delay (100 milliseconds).
895
895
 
896
+ ## `isIncognito()`
897
+
898
+ Detects if the browser is running in incognito mode.
899
+
900
+ ### Parameters
901
+
902
+ None
903
+
904
+ ### Returns
905
+
906
+ Promise: A promise that resolves to a boolean value indicating whether the browser is running in incognito mode (`true`) or not (`false`).
907
+
908
+ ### Example
909
+
910
+ The following example demonstrates how to use the `isIncognito` function:
911
+
912
+ ```javascript
913
+ import { isIncognito } from '@sesamy/sesamy-js';
914
+
915
+ // Detect if browser is running in incognito mode
916
+ isIncognito().then(isIncognitoEnabled => {
917
+ if (isIncognitoEnabled) {
918
+ console.log('Incognito mode is enabled');
919
+ } else {
920
+ console.log('Incognito mode is not enabled');
921
+ }
922
+ });
923
+ ```
924
+
896
925
  ## `isInAppBrowser()`
897
926
 
898
927
  Detects if the current browsing context is an in-app browser and identifies the browser name if applicable.