You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We currently retrieve the selected text from the selection context or the window.getSelection method. Unfortunately, this does not seem to works in certain environment:
PDFs
Google Docs
Text inputs
iFrames
The text was updated successfully, but these errors were encountered:
If you change line 57 in background.js from selectionContents.textContent; to selectionContents.textContent || window.getSelection().toString(); it will work for text input without affecting existing functionality. It's not very elegant code, so I'll just leave it as a comment here and let you decide how/if you want to add it.
For pdf's it looks like this might work. Not sure about Google docs though.
We currently retrieve the selected text from the selection context or the
window.getSelection
method. Unfortunately, this does not seem to works in certain environment:The text was updated successfully, but these errors were encountered: