mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-21 22:07:59 +01:00
move global restart() command to a vimperator slot
This commit is contained in:
@@ -617,7 +617,7 @@ function Commands() //{{{
|
|||||||
}
|
}
|
||||||
));
|
));
|
||||||
addDefaultCommand(new Command(["res[tart]"],
|
addDefaultCommand(new Command(["res[tart]"],
|
||||||
restart,
|
function() { vimperator.restart(); },
|
||||||
{
|
{
|
||||||
usage: ["res[tart]"],
|
usage: ["res[tart]"],
|
||||||
short_help: "Force the browser to restart",
|
short_help: "Force the browser to restart",
|
||||||
@@ -1582,7 +1582,7 @@ function reload_all(bypass_cache)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function restart()
|
Vimperator.prototype.restart = function()
|
||||||
{
|
{
|
||||||
// if (!arguments[1]) return;
|
// if (!arguments[1]) return;
|
||||||
const nsIAppStartup = Components.interfaces.nsIAppStartup;
|
const nsIAppStartup = Components.interfaces.nsIAppStartup;
|
||||||
|
|||||||
Reference in New Issue
Block a user