fregante / content-scripts-register-polyfill

WebExtensions: Polyfill for browser.contentScripts.register() for Chrome.
https://npm.im/content-scripts-register-polyfill
MIT License
25 stars 6 forks source link

Reject invalid `matches` option #65

Closed fregante closed 2 years ago

fregante commented 2 years ago

Like in Firefox, the error is now thrown when register is called rather than when it attempts to run executeScript.

Screen Shot

For some reason however Firefox is totally fine with calling register without any js/css properties 🤷‍♂️ so I won't check them either.