mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-03-05 16:25:46 +01:00
whitespace fix
This commit is contained in:
@@ -242,8 +242,8 @@ function AutoCommands() //{{{
|
|||||||
liberator.echomsg("Executing " + event + " Auto commands for \"*\"", 8);
|
liberator.echomsg("Executing " + event + " Auto commands for \"*\"", 8);
|
||||||
|
|
||||||
let lastPattern = null;
|
let lastPattern = null;
|
||||||
|
|
||||||
let url = args.url || "";
|
let url = args.url || "";
|
||||||
|
|
||||||
for (let [,autoCmd] in Iterator(autoCmds))
|
for (let [,autoCmd] in Iterator(autoCmds))
|
||||||
{
|
{
|
||||||
if (autoCmd.pattern.test(url))
|
if (autoCmd.pattern.test(url))
|
||||||
@@ -252,22 +252,24 @@ function AutoCommands() //{{{
|
|||||||
liberator.echomsg("Executing " + event + " Auto commands for \"" + autoCmd.pattern.source + "\"", 8);
|
liberator.echomsg("Executing " + event + " Auto commands for \"" + autoCmd.pattern.source + "\"", 8);
|
||||||
|
|
||||||
lastPattern = autoCmd.pattern;
|
lastPattern = autoCmd.pattern;
|
||||||
|
|
||||||
liberator.echomsg("autocommand " + autoCmd.command, 9);
|
liberator.echomsg("autocommand " + autoCmd.command, 9);
|
||||||
|
|
||||||
if (typeof autoCmd.command == "function")
|
if (typeof autoCmd.command == "function")
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
autoCmd.command.call(autoCmd, args);
|
autoCmd.command.call(autoCmd, args);
|
||||||
}
|
}
|
||||||
catch(e)
|
catch (e)
|
||||||
{
|
{
|
||||||
liberator.reportError(e);
|
liberator.reportError(e);
|
||||||
liberator.echoerr(e);
|
liberator.echoerr(e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
{
|
||||||
liberator.execute(commands.replaceTokens(autoCmd.command, args));
|
liberator.execute(commands.replaceTokens(autoCmd.command, args));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user