mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-27 10:42:27 +01:00
Closes issue #760.
This commit is contained in:
@@ -72,7 +72,7 @@ var Buffer = Module("Buffer", {
|
||||
dactyl.assert(url instanceof Ci.nsIURL);
|
||||
|
||||
while (count-- && url.path != "/")
|
||||
url.path = url.path.replace(/[^\/]+\/*$/, "");
|
||||
url.path = url.path.replace(/[^\/]*\/*$/, "");
|
||||
|
||||
dactyl.assert(!url.equals(this.documentURI));
|
||||
dactyl.open(url.spec);
|
||||
|
||||
Reference in New Issue
Block a user