Forum

Uncaught (in promis...
 
Notifications
Clear all

Uncaught (in promise) Error: Could not establish connection. Receiving end does not exist.

1 Posty
1 Users
0 Reactions
634 Widok
0
Topic starter

manifest v3

1 Answer
0
Topic starter

sender (popup.js)

function testAction(){
		chrome.tabs.query({active: true, currentWindow: true}, function(tabs)
		{
			chrome.tabs.sendMessage(
			tabs[0].id, 
			{ 
			   something:"my data"
			},function (response){});
		});
}

 

don't forget about "{active: true, currentWindow: true}"

Odpowiedź

Author Name

Author Email

Your question *

 
Preview 0 Revisions Saved
Share: