diff options
author | Sebastian <sebasjm@gmail.com> | 2024-03-04 12:07:35 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2024-03-04 12:07:35 -0300 |
commit | 6c124075b9a8540d848cd02cc3ba170eae052915 (patch) | |
tree | 6c509d89f63c6cd4a29026c32f0d3f8f74082aec /packages/taler-wallet-webextension/src/platform/chrome.ts | |
parent | c58349ebaa173881a4201e83e928325707758eb8 (diff) | |
download | wallet-core-6c124075b9a8540d848cd02cc3ba170eae052915.tar.xz |
fix #8371
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 |