add archive report

This commit is contained in:
qcrao
2024-07-25 15:42:36 +08:00
parent 300e1fb2c5
commit 4f9cd6a9aa

View File

@@ -113,10 +113,7 @@ async function handleBulkArchive() {
if (localIsPaid) {
chrome.tabs.query({ active: true, currentWindow: true }, ([tab]) => {
if (tab) {
chrome.scripting.executeScript({
target: { tabId: tab.id },
files: ["bulkArchiveConversations.js"],
});
loadGlobalsThenExecute(tab.id, "bulkArchiveConversations.js");
}
});
return;
@@ -139,10 +136,7 @@ async function handleBulkArchive() {
if (data.isPaid) {
chrome.tabs.query({ active: true, currentWindow: true }, ([tab]) => {
if (tab) {
chrome.scripting.executeScript({
target: { tabId: tab.id },
files: ["bulkArchiveConversations.js"],
});
loadGlobalsThenExecute(tab.id, "bulkArchiveConversations.js");
}
});
} else {