diff options
author | Matěj Cepl <mcepl@redhat.com> | 2011-03-02 13:37:39 +0100 |
---|---|---|
committer | Matěj Cepl <mcepl@redhat.com> | 2011-03-02 13:38:52 +0100 |
commit | 40a7136e0946f1f9d938fd65e0f416cd3455413f (patch) | |
tree | 27abaa6e91f4519196fce49b7d5922aa155ebf48 /lib | |
parent | 4eb99a9ead80166c27c49437b686ca6f2442da2d (diff) | |
download | bugzilla-triage-40a7136e0946f1f9d938fd65e0f416cd3455413f.tar.gz |
Add unknown PCI ID to the clipboard.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libbugzilla.js | 4 | ||||
-rw-r--r-- | lib/main.js | 3 |
2 files changed, 7 insertions, 0 deletions
diff --git a/lib/libbugzilla.js b/lib/libbugzilla.js index 600d193..bdcf8fb 100644 --- a/lib/libbugzilla.js +++ b/lib/libbugzilla.js @@ -204,6 +204,10 @@ exports.getClipboard = function getClipboard(cb) { cb(clipboard.get()); }; +exports.setClipboard = function setClipboard(stuff) { + clipboard.set(stuff, "text"); +}; + exports.getURL = function getURL(url, callback) { Request({ url: url, diff --git a/lib/main.js b/lib/main.js index accaa0e..191391f 100644 --- a/lib/main.js +++ b/lib/main.js @@ -73,6 +73,9 @@ var messageHandler = exports.messageHandler = function messageHandler(worker, ms worker.postMessage(new Message(msg.data, clipboard)); }); break; + case "SetClipboard": + libbz.setClipboard(msg.data); + break; case "ChangeJSONURL": libbz.changeJSONURL(); break; |