1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-28 18:05:46 +01:00

Fix gU for URLs containing //.

This commit is contained in:
Kris Maglione
2010-12-27 09:35:16 -05:00
parent 299ff0ecb3
commit 47167e769e

View File

@@ -18,7 +18,7 @@ var Browser = Module("browser", {
dactyl.assert(url instanceof Ci.nsIURL);
while (count-- && url.path != "/")
url.path = url.path.replace(/[^\/]+\/?$/, "");
url.path = url.path.replace(/[^\/]+\/*$/, "");
dactyl.assert(url.spec != buffer.URL);
dactyl.open(url.spec);