将flask改成fastapi

This commit is contained in:
2025-10-13 13:18:03 +08:00
commit 88db2539b0
476 changed files with 739741 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
chrome.runtime.onInstalled.addListener(() => {
console.log("Tiện ích đã được cài đặt!");
});
chrome.runtime.onMessage.addListener((message, sender, sendResponse) => {
if (message.action === "PAGE_INFO") {
console.log( message);
chrome.storage.local.set({ pageInfo: message }, () => {
console.log("Page info saved to local storage.");
});
// Send a response to the content script
sendResponse({ status: "success", message: "Page info received and processed." });
}
});