I want to copy an image blob into clipboard with the api navigator.clipboard.write. It works fine in chrome, but got an uncaught error like this:
β Uncaught Error: Clipboard access not supported for 3P plugins with manifest version upto 4. Valid manifest entry required from manifest version 5.
at new e.exports (uxp://uxp-internal/domjs_scripts.js:2)
at U.get clipboard [as clipboard] (uxp://uxp-internal/domjs_scripts.js:2)
at Object.get clipboard [as clipboard] (uxp://uxp-internal/pluginmanager_scripts.js:2)
at <anonymous>:1:11
It works, Thank you veryyyyy much! But I ran into another problems: β Uncaught UxpRuntimeError: Refusing to load event handler tag as executable code. Code generation is disabled in plugins
What should I do please?
If youβre using webpack, you can (for dev purposes), add allowCodeGenerationFromStrings: true to your requiredPermissions section in the manifest, and the error should go away.