1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-03-04 14:35:46 +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} * @returns {string}
*/ */
clipboardRead: function clipboardRead() { clipboardRead: function clipboardRead() {
let str; let str = null;
try { try {
const clipboard = Cc["@mozilla.org/widget/clipboard;1"].getService(Ci.nsIClipboard); 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); str = data.data.substring(0, dataLen.value / 2);
} }
} }
catch (e) { catch (e) {}
dactyl.reportError(e, true);
}
return str; return str;
}, },