commit 15a0a33ac1b0f5d0b7e490cbe20a81d5dfe98dd8
parent 9574de752d750f8de5e036215e1f08b617ad1cc4
Author: Dan Stillman <dstillman@zotero.org>
Date: Wed, 1 Jul 2015 19:36:16 -0400
Fix Quick Copy in tab mode
Diffstat:
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/chrome/content/zotero/xpcom/quickCopy.js b/chrome/content/zotero/xpcom/quickCopy.js
@@ -111,11 +111,13 @@ Zotero.QuickCopy = new function() {
var urlHostPort = nsIURI.hostPort;
var urlPath = nsIURI.path;
}
- catch (e) {
+ catch (e) {}
+
+ // Skip about:, chrome:, etc.
+ if (!urlHostPort) {
return quickCopyPref;
}
-
var matches = [];
var sql = "SELECT key AS domainPath, value AS format FROM settings "