Answers for "get url of page in background script"

0

get url of page in background script

chrome.tabs.query({
  active: true,
  currentWindow: true
}, function(tabs) {
  var tab = tabs[0];
  var url = tab.url;
});
Posted by: Guest on June-26-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language