learn-javascript icon indicating copy to clipboard operation
learn-javascript copied to clipboard

Microsoft Edge API tab data does not contain URL

Open derekjtong opened this issue 1 year ago • 0 comments

Relevant course file: 52. Use the Chrome API to get the tab

I am accessing the browser API using:

chrome.tabs.query({ active: true, currentWindow: true }, function (tabs) {
console.log(tabs);

In Google Chrome, the object returned is this: google chrome api

In Microsoft Edge, the object returned is this:

microsoft edge api

This unanswered StackOverflow question was the only thing I could find online.

How do I get current tab URL in Microsoft Edge?

derekjtong avatar Apr 22 '23 08:04 derekjtong