https://developer.mozilla.org/en-US/docs/Web/API/Window.getSelection
Even a nonfunctioning shim would go a long way. Currently I just do the following:
window.document.getSelection = function() { return { addRange: function() {}, removeAllRanges:function() { } } };
Just to avoid "cannot call undefined" when running getSelection().
https://developer.mozilla.org/en-US/docs/Web/API/Window.getSelection
Even a nonfunctioning shim would go a long way. Currently I just do the following:
window.document.getSelection = function() { return { addRange: function() {}, removeAllRanges:function() { } } };
Just to avoid "cannot call undefined" when running getSelection().