Ekstensi Chrome Dapatkan tab saat ini dari popup
chrome.tabs.query({active: true, currentWindow: true},function(tabs){
var currentTab = tabs[0];
});
Friendly Hawk
chrome.tabs.query({active: true, currentWindow: true},function(tabs){
var currentTab = tabs[0];
});
async function getCurrentTabUrl() {
let queryOptions = { active: true, currentWindow: true };
let [tab] = await chrome.tabs.query(queryOptions);
return tab.url
}