Skip to content

[Bug] useClipboard / Clipboard API 无法在浏览器的非安全上下文下使用 #218

Description

@tanukihee

useClipboard / Clipboard API 无法在浏览器的非安全上下文下使用。即当 window.isSecureContextfalse 时,window.navigator.clipboardundefined

考虑加一个使用 document.execCommand("copy") 的 fallback?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions