diff options
Diffstat (limited to 'packages/taler-wallet-webextension/src/platform/chrome.ts')
-rw-r--r-- | packages/taler-wallet-webextension/src/platform/chrome.ts | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/packages/taler-wallet-webextension/src/platform/chrome.ts b/packages/taler-wallet-webextension/src/platform/chrome.ts index 68b065853..2cdc4d8b6 100644 --- a/packages/taler-wallet-webextension/src/platform/chrome.ts +++ b/packages/taler-wallet-webextension/src/platform/chrome.ts @@ -16,12 +16,11 @@ import { Logger, - TalerErrorCode, - TalerUriAction, TalerError, - parseTalerUri, + TalerErrorCode, TalerUri, - stringifyTalerUri, + TalerUriAction, + stringifyTalerUri } from "@gnu-taler/taler-util"; import { WalletOperations } from "@gnu-taler/taler-wallet-core"; import { BackgroundOperations } from "../wxApi.js"; @@ -33,9 +32,8 @@ import { MessageFromBackend, MessageFromFrontend, MessageResponse, - Permissions, Settings, - defaultSettings, + defaultSettings } from "./api.js"; const api: BackgroundPlatformAPI & ForegroundPlatformAPI = { @@ -44,6 +42,7 @@ const api: BackgroundPlatformAPI & ForegroundPlatformAPI = { findTalerUriInActiveTab, findTalerUriInClipboard, getPermissionsApi, + runningOnPrivateMode, getWalletWebExVersion, triggerWalletEvent, listenToWalletBackground, @@ -739,3 +738,6 @@ function listenNetworkConnectionState( }; } +function runningOnPrivateMode(): boolean { + return chrome.extension.inIncognitoContext +}
\ No newline at end of file |