"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.clearCrossOriginForCORSIfNotSameOrigin = void 0;
var clearCrossOriginForCORSIfNotSameOrigin = function (img, url) {
    if (new URL(url, window.location.href).origin !== window.location.origin) {
        img.crossOrigin = '';
    }
};
exports.clearCrossOriginForCORSIfNotSameOrigin = clearCrossOriginForCORSIfNotSameOrigin;
