You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
bug: After upgrading to manifest v3 Chrome notification not sent anymore due to this error Unchecked runtime.lastError: Could not establish connection. Receiving end does not exist.
#10
Error: Error in event handler: ReferenceError: Cannot access 'message' before initialization
Solution
first had to send chrome.runtime.sendMessage before updating the window to fix the previous error Unchecked runtime.lastError: Could not establish connection. Receiving end does not exist. and Error: Unchecked runtime.lastError: The message port closed before a response was received.
then had to remove block scoped variables to use the local scoped variables for the message object
before was mixing and matching variables which caused message to be undefined
* Fix Error 1) error Unchecked runtime.lastError: The message port closed before a response was received. and
* Fix Error 2) Error in event handler: ReferenceError: Cannot access 'message' before initialization
* update instructions to be clearer
* ad youtubeBlocker_ prefix to all files to make easier to debug in chrome
* Update manifest.json
* fix: fix chrome notifications not being sent (#10)
* Fix Error 1) error Unchecked runtime.lastError: The message port closed before a response was received. and
* Fix Error 2) Error in event handler: ReferenceError: Cannot access 'message' before initialization
Unchecked runtime.lastError: Could not establish connection. Receiving end does not exist.
Unchecked runtime.lastError: The message port closed before a response was received.
The text was updated successfully, but these errors were encountered: