📅  最后修改于: 2022-03-11 15:04:18.853000             🧑  作者: Mango
//// background.js
async function getCurrentTab() {
let queryOptions = { active: true, currentWindow: true };
let [tab] = await chrome.tabs.query(queryOptions);
return tab;
}