scrimba/learn-javascript

Microsoft Edge API tab data does not contain URL

Opened this issue · 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?