wix-style-react
Version:
wix-style-react
22 lines (21 loc) • 560 B
JavaScript
;
exports.__esModule = true;
exports.register = void 0;
var register = () => {
if (window && !window.matchMedia) {
window.matchMedia = function () {
return {
matches: false,
addListener() {},
removeListener() {}
};
};
}
global.matchMedia = global.matchMedia || window.matchMedia;
};
exports.register = register;
var isTestEnv = process.env.NODE_ENV === 'test';
if (isTestEnv && typeof window !== 'undefined' && !window.matchMedia) {
register();
}
//# sourceMappingURL=match-media-register.js.map