You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
a way to feature detect the support for specific mime types in write operations
OR quietely ignore unsupported mime types as long as one is supported during a write operation
I was using the following code for mime type support feature detection
constisSupported=async(type)=>{try{awaitnavigator.clipboard.write([newClipboardItem({[type]: newBlob(["test content for "+type],{ type }),}),]);returntrue;}catch(e){returnfalse;}};
Could we either allow
I was using the following code for mime type support feature detection
but this causes issues in Chrome and Edge: https://bugs.chromium.org/p/chromium/issues/detail?id=1509827
Additionally writing to the clipboard just to see whether it will fail is... not pretty.
The text was updated successfully, but these errors were encountered: