TeemuKoivisto / prosemirror-dev-toolkit

Injectable developer tools for ProseMirror rich-text editors implemented in Svelte and TypeScript.
https://teemukoivisto.github.io/prosemirror-dev-toolkit/
MIT License
115 stars 6 forks source link

Error thrown if page itself loads prosemirror-dev-toolkit #72

Closed mustafa0x closed 10 months ago

mustafa0x commented 10 months ago

Visiting https://www.suggestcat.com results in the following error.

DOMException: Failed to execute 'define' on 'CustomElementRegistry': the name "prosemirror-dev-toolkit" has already been used with this registry
TeemuKoivisto commented 10 months ago

Yes that was fixed in couple patches back but they haven't updated their bundled toolkit so it won't check for registered web components before execution. And since the extension code is run before the page's, can't really retroactively prevent it

mustafa0x commented 10 months ago

Makes sense, thanks!