1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-29 10:52:27 +01:00

Fix yanking bug, and less sucky literal() parsing.

--HG--
extra : rebase_source : 94698268ac8c138de45088f77ecb8bffa5169da0
This commit is contained in:
Kris Maglione
2013-11-29 18:43:06 -08:00
parent da049fa175
commit c26a486ab3
3 changed files with 13 additions and 7 deletions

View File

@@ -644,9 +644,10 @@ var Buffer = Module("Buffer", {
}
let link = DOM("link[href][rev=canonical], \
link[href][rel=shortlink]", doc);
if (link.length)
return hashify(link.attr("href"));
link[href][rel=shortlink]", doc)
.attr("href");
if (link)
return hashify(link);
return null;
},