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:
@@ -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;
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user