1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-04 04:44:20 +01:00

Fix arg parsing issue in 38+.

This commit is contained in:
Kris Maglione
2015-05-12 19:40:35 -07:00
parent 48acf656ec
commit fbdae38c9e
2 changed files with 8 additions and 5 deletions

View File

@@ -2099,7 +2099,7 @@ var Buffer = Module("Buffer", {
["y", "<yank-location>"], "Yank current location to the clipboard",
function () {
let { uri } = buffer;
if (uri instanceof Ci.nsIURL)
if (uri instanceof Ci.nsIURL && uri instanceof Ci.nsIMutable && uri.mutable)
uri.query = uri.query.replace(/(?:^|&)utm_[^&]+/g, "")
.replace(/^&/, "");