1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-09 03:54:11 +01:00

Remove bare references to 'content'.

This commit is contained in:
Kris Maglione
2010-10-04 22:09:54 -04:00
parent 2012279ad9
commit 9af8705807
5 changed files with 20 additions and 14 deletions

View File

@@ -149,7 +149,7 @@ const Browser = Module("browser", {
mappings.add([modes.NORMAL], ["gU"],
"Go to the root of the website",
function () {
let uri = content.document.location;
let uri = window.content.document.location;
dactyl.assert(!/(about|mailto):/.test(uri.protocol)); // exclude these special protocols for now
dactyl.open(uri.protocol + "//" + (uri.host || "") + "/");
});