fix(browser): address code review feedback

- Add explicit return value to message listener in content.js
- Fix documentation references in QUICKSTART.md
- Clarify that GET_PAGE_INFO listener is reserved for future use

Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-02-12 03:08:20 +00:00
parent 5cc34d6a72
commit 5d42e03b90
2 changed files with 5 additions and 2 deletions
+3 -1
View File
@@ -3,7 +3,7 @@
// This script runs on all web pages to detect file URLs
// and enable communication between page content and the extension
// Listen for messages from the popup
// Listen for messages from the popup (reserved for future use)
chrome.runtime.onMessage.addListener((message, sender, sendResponse) => {
if (message.type === 'GET_PAGE_INFO') {
// Return information about the current page
@@ -12,7 +12,9 @@ chrome.runtime.onMessage.addListener((message, sender, sendResponse) => {
title: document.title
};
sendResponse(pageInfo);
return true; // Indicates response will be sent asynchronously
}
return false; // No async response
});
// Detect if current page is a direct file link