Update app-bridge.ts (#127)

This commit is contained in:
Lukasz Ostrowski 2022-12-01 10:17:02 +01:00 committed by GitHub
parent 7d7ff1e562
commit 063e56f345
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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