From 063e56f345b75a776b8ad0a277f8bc2a5e72e76f Mon Sep 17 00:00:00 2001 From: Lukasz Ostrowski Date: Thu, 1 Dec 2022 10:17:02 +0100 Subject: [PATCH] Update app-bridge.ts (#127) --- src/app-bridge/app-bridge.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app-bridge/app-bridge.ts b/src/app-bridge/app-bridge.ts index 125201e..7576bee 100644 --- a/src/app-bridge/app-bridge.ts +++ b/src/app-bridge/app-bridge.ts @@ -137,7 +137,7 @@ export class AppBridge { debug("?domain was not found in iframe url"); } - if (!(this.combinedOptions.saleorApiUrl && this.combinedOptions.targetDomain)) { + if (!(this.combinedOptions.saleorApiUrl || this.combinedOptions.targetDomain)) { console.error( "domain and saleorApiUrl params were not found in iframe url. Ensure at least one of them is present" );