fix(studio): refine preset surfaces and repair gallery interactions
This commit is contained in:
1 parent
f642a84c58
commit
bb40dffee8
20 files changed
+345
-72
No files matched your search
@@ -40,6 +40,9 @@ component Clipboard {
|
||||
}
|
||||
status = "copying"
|
||||
output.copy({ value: value, sourceEvent: sourceEvent })
|
||||
if (window.wrnClipboard && window.wrnClipboard.writeText) {
|
||||
return window.wrnClipboard.writeText(value).then(copySucceeded).catch(copyFailed)
|
||||
}
|
||||
if (!window.navigator.clipboard || !window.navigator.clipboard.writeText) {
|
||||
copyFailed(new Error("Clipboard API is unavailable"))
|
||||
return
|
||||
|
||||
Reference in new issue
Block a user