浏览代码

Add note about needed secure context for this to work

Matthias Niess 2 年之前
父节点
当前提交
5dfec36790
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      README.md

+ 3 - 0
README.md

@@ -44,6 +44,9 @@ window.Alpine.start()
 
 ## Usage
 
+> **Note**
+> The Clipboard Web-API requires a secure context (i.e. https) to function in most browsers ([more info](https://developer.mozilla.org/en-US/docs/Web/API/Clipboard)).
+
 To copy some data to the clipboard, invoke `$clipboard` from an event handler in your component.
 
 ```html