diff --git a/common/content/dactyl.js b/common/content/dactyl.js index 15cad187..f83d5525 100644 --- a/common/content/dactyl.js +++ b/common/content/dactyl.js @@ -1596,7 +1596,7 @@ var Dactyl = Module("dactyl", XPCOM(Ci.nsISupportsWeakReference, ModuleBase), { function (args) { if (dactyl.has("tabs") && tabs.remove(tabs.getTab(), 1, false)) return; - else if (dactyl.windows.size > 1) + else if (dactyl.windows.length > 1) window.close(); else dactyl.quit(false, args.bang); diff --git a/common/modules/main.jsm b/common/modules/main.jsm index 6043d5e4..31df62fd 100644 --- a/common/modules/main.jsm +++ b/common/modules/main.jsm @@ -124,6 +124,8 @@ var Modules = function Modules(window) { get document() window.document, + get navigator() window.navigator, + window: window, Module: Module,