aklinker1 / webext-core

Collection of essential libraries and tools for building web extensions
https://webext-core.aklinker1.io
MIT License
96 stars 11 forks source link

feat(messaging): Window and Custom Event messaging #33

Closed aklinker1 closed 1 year ago

aklinker1 commented 1 year ago

Overview

Was originally done alongside #28, but I've separated the refactor from the new features.

This closes #27

Todo

aklinker1 commented 1 year ago

Alright, I think everything is done, just need to do some final testing in a real extension to make sure my unit tests are valid.

aklinker1 commented 1 year ago

Alright, I've manually tested both window and custom event messaging, it seems to be working in a real extension.

I had to remove the default namespace of browser.runtime.id because you can't import browser.runtime.id in scripts injected onto the page, they're not running in the extension's context. So it's now required.