add archive report
This commit is contained in:
10
popup.js
10
popup.js
@@ -113,10 +113,7 @@ async function handleBulkArchive() {
|
|||||||
if (localIsPaid) {
|
if (localIsPaid) {
|
||||||
chrome.tabs.query({ active: true, currentWindow: true }, ([tab]) => {
|
chrome.tabs.query({ active: true, currentWindow: true }, ([tab]) => {
|
||||||
if (tab) {
|
if (tab) {
|
||||||
chrome.scripting.executeScript({
|
loadGlobalsThenExecute(tab.id, "bulkArchiveConversations.js");
|
||||||
target: { tabId: tab.id },
|
|
||||||
files: ["bulkArchiveConversations.js"],
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
return;
|
return;
|
||||||
@@ -139,10 +136,7 @@ async function handleBulkArchive() {
|
|||||||
if (data.isPaid) {
|
if (data.isPaid) {
|
||||||
chrome.tabs.query({ active: true, currentWindow: true }, ([tab]) => {
|
chrome.tabs.query({ active: true, currentWindow: true }, ([tab]) => {
|
||||||
if (tab) {
|
if (tab) {
|
||||||
chrome.scripting.executeScript({
|
loadGlobalsThenExecute(tab.id, "bulkArchiveConversations.js");
|
||||||
target: { tabId: tab.id },
|
|
||||||
files: ["bulkArchiveConversations.js"],
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user