summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDoug Kearns <dougkearns@gmail.com>2013-11-04 21:31:52 +1100
committerDoug Kearns <dougkearns@gmail.com>2013-11-04 21:31:52 +1100
commitda049fa1754a9da8d9c8e9c5c0ad87e59549325e (patch)
treebd394e7d3451d500fb1e0b72b2ba328454734de1
parent64978d071f51ed3dd3f9945445e9b2ed82c35ab4 (diff)
downloadpentadactyl-da049fa1754a9da8d9c8e9c5c0ad87e59549325e.tar.gz
Fix yanking long urls.
Fixes issue #1083.
-rw-r--r--common/modules/buffer.jsm2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/modules/buffer.jsm b/common/modules/buffer.jsm
index 3a35f608..97b37b25 100644
--- a/common/modules/buffer.jsm
+++ b/common/modules/buffer.jsm
@@ -645,7 +645,7 @@ var Buffer = Module("Buffer", {
let link = DOM("link[href][rev=canonical], \
link[href][rel=shortlink]", doc);
- if (link)
+ if (link.length)
return hashify(link.attr("href"));
return null;