summaryrefslogtreecommitdiffstats
path: root/extensions/BugModal
diff options
context:
space:
mode:
Diffstat (limited to 'extensions/BugModal')
-rw-r--r--extensions/BugModal/web/bug_modal.js7
1 files changed, 1 insertions, 6 deletions
diff --git a/extensions/BugModal/web/bug_modal.js b/extensions/BugModal/web/bug_modal.js
index e7a182580..dfbe06bad 100644
--- a/extensions/BugModal/web/bug_modal.js
+++ b/extensions/BugModal/web/bug_modal.js
@@ -255,14 +255,9 @@ $(function() {
}
if ($('#copy-summary').length) {
-
- // probe for document.execCommand("copy") support
var hasExecCopy = false;
try {
- // on page load nothing will be selected, so we don't smash the
- // clipboard doing this
- document.execCommand("copy");
- hasExecCopy = true;
+ hasExecCopy = document.queryCommandSupported("copy");
} catch(ex) {
// ignore
}