Lucas Garron

Results 796 comments of Lucas Garron

@JSteunou That would explain it. You should not import `clipboard-polyfill/src/implementations/write-fallback`, it is not a public API and not meant to be possible to import. Importing both the built library and...

> Ho ok. Unfortunately we have to try catch `writeText` and fallback to `writeFallback` in case of failure. Failures happens in crossorigin iframe (an app in Microsoft Teams for example)....

That does sound pretty weird. Do you have an example page I can try to debug?

> something's weird also happens in my product, it only works for write api. you can play around here (notes that I just try with the navigator api) > >...

Thanks for taking the time to investigate this! Safari compat is quite annoying to repro, since Safari releases are tied to OS releases. > I will note that the WebKit...

I just tried the following on Safari 12.1.1 / iOS 12.3: - Visit https://garron.net/code/clipboard-polyfill/ - Click on "Copy text (plain)" - Put the cursor in the paste area and paste....

> Is there a text only version which includes the promise? No, unfortunately not. What's your use case? > I can't work it out from the README, but does the...

Coming back to this, I'm wary of adding more builds to the project. However, you can make a build yourself by using: { input: "./src/targets/text.ts", output: [ { banner: promisePolyfill,...

> Thanks for your help. Would I need to fork this repo to have that included in my project? Sorry, I'm not too familiar with the ecosystem. You'd have to...

> Hi, > > just FYI: Firefox still does not support ClipboardItem, therefore this polyfill is still required... :( > > BR, Marco Ah, yeah, looks like you're right, I...