From cc5280f0a7eb57548794fb8b96da582a14c690b6 Mon Sep 17 00:00:00 2001 From: Zeno Rocha Date: Wed, 21 Sep 2016 10:38:09 -0700 Subject: [PATCH] Adjusts text based on #313 --- index.html | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/index.html b/index.html index 71b9a2d..48172f8 100644 --- a/index.html +++ b/index.html @@ -180,7 +180,7 @@ clipboard.destroy();

Browser Support

-

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.

-

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.