From 5adfc0eb889a4424d36abf29ce9f2b404bd3631b Mon Sep 17 00:00:00 2001 From: YandLiu Date: Fri, 31 Jan 2020 21:54:40 +1100 Subject: [PATCH 1/2] fix clipboard-related issues on Firefox --- js/background.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/background.js b/js/background.js index 8dc80d0..a46a2f8 100644 --- a/js/background.js +++ b/js/background.js @@ -1634,7 +1634,7 @@ var sub={ break; } clipOBJ.select(); - document.execCommand('copy', false, null); + document.execCommand('copy'); clipOBJ.remove(); }) } From 7b9f2a678452d3a072d127b09d220a27d9ee9c19 Mon Sep 17 00:00:00 2001 From: zimocode Date: Wed, 12 Feb 2020 19:47:17 +0800 Subject: [PATCH 2/2] Revert "fix clipboard-related issues on Firefox" --- js/background.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/background.js b/js/background.js index a46a2f8..8dc80d0 100644 --- a/js/background.js +++ b/js/background.js @@ -1634,7 +1634,7 @@ var sub={ break; } clipOBJ.select(); - document.execCommand('copy'); + document.execCommand('copy', false, null); clipOBJ.remove(); }) }