mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-05 12:24:30 +01:00
Merge branch 'main' of https://github.com/chriswritescode-dev/opencode-manager
This commit is contained in:
commit
8be0bbd8a0
1 file changed
+8
@@ -420,6 +420,14 @@ export const PromptInput = forwardRef<PromptInputHandle, PromptInputProps>(funct
|
||||
const isSecureContext = window.isSecureContext || (window.location.protocol === 'http:' && window.location.hostname === 'localhost')
|
||||
|
||||
if (isIOS && isSecureContext && navigator.clipboard && navigator.clipboard.read) {
|
||||
try {
|
||||
const text = await navigator.clipboard.readText()
|
||||
if (text && text.trim()) {
|
||||
return
|
||||
}
|
||||
} catch (err) {
|
||||
}
|
||||
|
||||
event.preventDefault()
|
||||
try {
|
||||
const clipboardItems = await navigator.clipboard.read()
|
||||
|
||||
Reference in new issue
Block a user