Эх сурвалжийг харах

Add note about needed secure context for this to work

Matthias Niess 2 жил өмнө
parent
commit
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