wix-style-react
Version:
wix-style-react
20 lines • 503 B
JavaScript
const originalGetSelection = typeof window === 'undefined' ? function () { } : window.getSelection;
const install = () => {
if (typeof window === 'undefined') {
return;
}
window.getSelection = () => {
return {
addRange: () => { },
removeAllRanges: () => { },
};
};
};
const uninstall = () => {
window.getSelection = originalGetSelection;
};
export default {
install,
uninstall,
};
//# sourceMappingURL=selection-behavior.js.map