Skip to content

Commit 38ae5b3

Browse files
committed
Adds documentation about zenorocha#355
1 parent 41b7234 commit 38ae5b3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

readme.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,8 @@ This library relies on both [Selection](https://developer.mozilla.org/en-US/docs
168168

169169
The good news is that clipboard.js gracefully degrades if you need to support older browsers. All you have to do is show a tooltip saying `Copied!` when `success` event is called and `Press Ctrl+C to copy` when `error` event is called because the text is already selected.
170170

171+
You can also check if clipboard.js is supported or not by running `Clipboard.isSupported()`, that way you can hide copy/cut buttons from the UI.
172+
171173
## License
172174

173175
[MIT License](http://zenorocha.mit-license.org/) © Zeno Rocha

0 commit comments

Comments
 (0)