diff --git a/index.html b/index.html index 71b9a2d..48172f8 100644 --- a/index.html +++ b/index.html @@ -180,7 +180,7 @@ clipboard.destroy();
This library relies on both Selection and execCommand APIs. The second one is supported in the following browsers.
+This library relies on both Selection and execCommand APIs. The first one is supported by all browsers while the second one is supported in the following browsers.
Safari 10
+Safari 10+
Although copy/cut operations with execCommand aren't supported on Safari < 10 or Safari Mobile on iOS < 10, it gracefully degrades because Selection is supported.
- -That means you can 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.
For a live demonstration, open this site on Safari < 10 or Safari Mobile on iOS < 10.
+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.