diff options
author | Matěj Cepl <mcepl@redhat.com> | 2010-06-07 15:04:02 +0200 |
---|---|---|
committer | Matěj Cepl <mcepl@redhat.com> | 2010-06-07 15:04:02 +0200 |
commit | 67bdce8805063717bfdbc449e5d8974f32f288a2 (patch) | |
tree | 594170cb6721f053d14d18634dc290b212c5ef8e /lib/rhbzpage.js | |
parent | 2b95e7ae6cb53f987931de8f567870b9e69cdf9a (diff) | |
download | bugzilla-triage-67bdce8805063717bfdbc449e5d8974f32f288a2.tar.gz |
The first attempt to make JEP-10/Clipboard working.
Diffstat (limited to 'lib/rhbzpage.js')
-rw-r--r-- | lib/rhbzpage.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/rhbzpage.js b/lib/rhbzpage.js index c885699..c9d9b9f 100644 --- a/lib/rhbzpage.js +++ b/lib/rhbzpage.js @@ -6,6 +6,7 @@ var util = require("util"); var xrpc = require("xmlrpc"); var xhr = require("xhr"); +var clip = require("clipboard"); // var TriagedDistro = 13; // var NumberOfFrames = 7; // var XMLRPCurl = "https://bugzilla.redhat.com/xmlrpc.cgi"; @@ -589,7 +590,7 @@ RHBugzillaPage.prototype.queryForSelection = function() { let text = jetpack.selection.text; console.log("selection = " + text); if (!text) { - text = jetpack.clipboard.get(); + text = clip.get(); console.log("clipboard = " + text); } console.log("text = " + text); @@ -604,7 +605,7 @@ RHBugzillaPage.prototype.queryForSelection = function() { RHBugzillaPage.prototype.queryUpstream = function() { let text = jetpack.selection.text; if (!text) { - text = jetpack.clipboard.get(); + text = clip.get(); } if (text) { let text = encodeURIComponent(text.trim()); |