Samuel Wadrose
unread,Aug 24, 2023, 10:31:57 AM8/24/23Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Chromium Extensions, Oliver Dunk, Chromium Extensions, Samuel Wadrose
Thank you for you help. That solution works for my case.
Do you mind explaining why this setup would not work?
chrome.runtime.onMessage.addListener(async function(request, sender, sendResponse) {
if (request.action === 'getUserName') {
const user = await getUserName();
sendResponse(user);
}
//Is this return true still needed?
return true;
});