1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-22 23:58:00 +01:00

Add commandline.runSilently

This commit is contained in:
Kris Maglione
2008-12-17 22:32:32 -05:00
parent 3f24bd5d6d
commit 6ca4af3c95

View File

@@ -876,6 +876,20 @@ function CommandLine() //{{{
storage.styles.removeSheet("silent-mode", null, null, null, true); storage.styles.removeSheet("silent-mode", null, null, null, true);
}, },
runSilently: function (fn, self)
{
let wasSilent = this.silent;
this.silent = true;
try
{
fn.call(self);
}
finally
{
this.silent = wasSilent;
}
},
get command() get command()
{ {
try try