mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-05 12:24:30 +01:00
refactor: replace OpenCode server restarts with config reloads for faster updates (#70)
This commit is contained in:
1 parent
8be0bbd8a0
commit
2bd2b024b8
11 files changed
+183
-107
No files matched your search
@@ -419,19 +419,20 @@ export const PromptInput = forwardRef<PromptInputHandle, PromptInputProps>(funct
|
||||
const isIOS = /iPad|iPhone|iPod/.test(navigator.userAgent) && !(window as { MSStream?: boolean }).MSStream
|
||||
const isSecureContext = window.isSecureContext || (window.location.protocol === 'http:' && window.location.hostname === 'localhost')
|
||||
|
||||
if (isIOS && isSecureContext && navigator.clipboard && navigator.clipboard.read) {
|
||||
if (isIOS && isSecureContext && navigator.clipboard && navigator.clipboard.read) {
|
||||
try {
|
||||
const text = await navigator.clipboard.readText()
|
||||
if (text && text.trim()) {
|
||||
return
|
||||
}
|
||||
} catch (err) {
|
||||
} catch {
|
||||
}
|
||||
|
||||
|
||||
event.preventDefault()
|
||||
|
||||
try {
|
||||
const clipboardItems = await navigator.clipboard.read()
|
||||
|
||||
|
||||
for (const item of clipboardItems) {
|
||||
for (const type of item.types) {
|
||||
if (ACCEPTED_FILE_TYPES.includes(type) || type.startsWith('image/')) {
|
||||
|
||||
Reference in new issue
Block a user