Jack Bauer 2022-06-20 23:37:01 +04:00 committed by GitHub
parent 0a52b5c317
commit 7c0e098b12
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1881,7 +1881,7 @@ export class TldrawApp extends StateManager<TDSnapshot> {
})
if (navigator.clipboard) {
const items = await navigator.clipboard.read()
const items = 'read' in navigator.clipboard ? await navigator.clipboard.read() : []
if (items.length === 0) return