mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-29 03:52:26 +01:00
Fix :quit. Closes #1126.
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -124,6 +124,8 @@ var Modules = function Modules(window) {
|
||||
|
||||
get document() window.document,
|
||||
|
||||
get navigator() window.navigator,
|
||||
|
||||
window: window,
|
||||
|
||||
Module: Module,
|
||||
|
||||
Reference in New Issue
Block a user