emarsys-integration-client
Advanced tools
Comparing version 2.7.0 to 2.8.0
@@ -92,3 +92,11 @@ 'use strict'; | ||
console.error('No response received for integrationClient request within ' + _this2.getResponseTimeout() + 'ms. Make sure emarsys-integration-js is included in the top iframe.'); | ||
_this2.deferreds[eventId].reject(new Error('No response recieved within timeout')); | ||
var myWindow = _this2.transmitter.global; | ||
var isIFrame = myWindow.self !== myWindow.top; | ||
var errorMessage = void 0; | ||
if (!isIFrame && (!myWindow.Emarsys || !myWindow.Emarsys.integration)) { | ||
errorMessage = 'No response received for integrationClient within timeout, emarsys-integration-js is missing'; | ||
} else { | ||
errorMessage = 'No response received for integrationClient within timeout'; | ||
} | ||
_this2.deferreds[eventId].reject(new Error(errorMessage)); | ||
}, this.getResponseTimeout()); | ||
@@ -95,0 +103,0 @@ |
@@ -39,3 +39,3 @@ { | ||
"homepage": "https://github.com/emartech/emarsys-integration-client-js#readme", | ||
"version": "2.7.0" | ||
"version": "2.8.0" | ||
} |
@@ -5,4 +5,4 @@ { | ||
"is_critical": false, | ||
"contact": "g-gsuite-rti@emarsys.com", | ||
"contact": "team-design-system@emarsys.com", | ||
"hosted": "static" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
38302
570