1

I want to get the selected text in Edge, but the result is always empty browser.tabs.executeScript({code: "window.getSelection().toString();"}).then(result => { alert(result); });

  • Welcome to Stack Overflow! To give you a great answer, it might help us if you have a glance at [ask] if you haven't already. It might be also useful if you could provide a [mcve]. – Mat Oct 17 '17 at 16:53

1 Answers1

0

Seems to be a known bug - see https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/8504764/

Petter Friberg
  • 21,252
  • 9
  • 60
  • 109
Georg Mavridis
  • 2,312
  • 1
  • 15
  • 23