1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-10 07:24:12 +01:00

Don't print an Exception on paste when the selection is empty.

This commit is contained in:
Kris Maglione
2010-10-03 15:21:18 -04:00
parent 57f27000c8
commit 89a3a36047

View File

@@ -152,7 +152,7 @@ const Dactyl = Module("dactyl", {
* @returns {string}
*/
clipboardRead: function clipboardRead() {
let str;
let str = null;
try {
const clipboard = Cc["@mozilla.org/widget/clipboard;1"].getService(Ci.nsIClipboard);
@@ -175,10 +175,7 @@ const Dactyl = Module("dactyl", {
str = data.data.substring(0, dataLen.value / 2);
}
}
catch (e) {
dactyl.reportError(e, true);
}
catch (e) {}
return str;
},