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" );