/// <reference path="../../condition/ICondition.ts"/>
var econda;
(function (econda) {
var recengine;
(function (recengine) {
var condition;
(function (condition) {
/**
* Checks if current Browser is supported for OFFSITE retargeting (Dynamic Ads)
* @class econda.recengine.condition.ReTargetingCookieAvailableAndNotEmpty
*/
var IsSupportedBrowserOffsite = (function () {
function IsSupportedBrowserOffsite() {
}
IsSupportedBrowserOffsite.prototype.isTrue = function () {
// check described on https://hacks.mozilla.org/2009/07/cross-site-xmlhttprequest-with-cors/
return ((typeof XMLHttpRequest != 'undefined') && ('withCredentials' in new XMLHttpRequest()));
};
return IsSupportedBrowserOffsite;
}());
condition.IsSupportedBrowserOffsite = IsSupportedBrowserOffsite;
})(condition = recengine.condition || (recengine.condition = {}));
})(recengine = econda.recengine || (econda.recengine = {}));
})(econda || (econda = {}));