-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Closed
Labels
Description
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().
ianstormtaylor, eight04 and chiawendt