You can’t return a Promise
to make the function async
, you have to return true
. So change this:
return Promise.resolve("");
To this:
Promise.resolve("").then(result => sendResponse(result)); return true;
Related Posts:
- Does mobile Google Chrome support browser extensions?
- Chrome theme new tab background does not fill correctly
- Getting “net::ERR_BLOCKED_BY_CLIENT” error on some AJAX calls
- Getting “net::ERR_BLOCKED_BY_CLIENT” error on some AJAX calls
- Manifest is not valid JSON. Line: 1, column: 1, Unexpected token
- Apps, Extensions and scripts cannot be added from this website
- Chrome says my extension’s manifest file is missing or unreadable
- Disable developer mode extensions pop up in Chrome
- Difference between Chrome Apps and Extensions
- enabling right click:
- Chrome hangs after certain amount of data transfered – waiting for available socket
- Chrome not Firefox are not dumping to SSLKEYLOGFILE variable
- When adding a JavaScript library, Chrome complains about a missing source map. Why?
- Chrome not Firefox are not dumping to SSLKEYLOGFILE variable
- Google Chrome forcing download of “f.txt” file
- Chrome sendrequest error: TypeError: Converting circular structure to JSON
- “Chrome extension throws CRX file Error “CRX_REQUIRD_PROOF_MISSING”
- Failed to load PDF document in Chrome
- What does ==$0 (double equals dollar zero) mean in Chrome Developer Tools?
- How to Fix ERR_HTTP2_INADEQUATE_TRANSPORT_SECURITY in IIS on Windows Server 2016
- Is there a Google Voice API?
- speedtest.net api
- This API project is not authorized to use this API. Please ensure that this API is activated in the APIs Console
- Where does Chrome keep the SQLite Database file it writes things like stored passwords to?
- Where does Chrome store cookies?
- ResizeObserver – loop limit exceeded
- View google chrome’s cached pictures [closed]
- How can I change the color of a Google Maps marker?
- Duplicate headers received from server
- How to fix “ERROR: Could not find method google() for arguments [] on repository container.” in android studio 3.5
- When running WebDriver with Chrome browser, getting message, “Only local connections are allowed” even though browser launches properly
- How to use jQuery in chrome extension?
- Using google API to tell how busy a place is
- How to make audio autoplay on chrome
- How to disable Google Chrome auto update?
- Force div to be topmost element of any and all webpages
- Chrome Push Notification: This site has been updated in the background
- Where is the new Emulation tab in Chromes console drawer?
- Google Spreadsheet adding tooltip
- Google Chrome Ignoring Hosts File
- Workaround for Your Flash settings will be kept until you quit Chrome
- Where to find extensions installed folder for Google Chrome on Mac?
- How can I force a hard reload in Chrome for Android
- Chrome’s fonts are too light to read
- Chrome: console.log, console.debug are not working