mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-08 16:14:12 +01:00
rename autocommand parameters fullscreen and colors to state and name
This commit is contained in:
@@ -479,7 +479,7 @@ function Events() //{{{
|
||||
{
|
||||
fullscreen = window.fullScreen;
|
||||
liberator.triggerObserver("fullscreen", fullscreen);
|
||||
autocommands.trigger("Fullscreen", {url: "", fullscreen: fullscreen});
|
||||
autocommands.trigger("Fullscreen", { state: fullscreen });
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -381,7 +381,7 @@ liberator.registerObserver("load_commands", function ()
|
||||
let scheme = args.arguments[0];
|
||||
|
||||
if (io.sourceFromRuntimePath(["colors/" + scheme + ".vimp"]))
|
||||
autocommands.trigger("ColorScheme", { colors: scheme }); // XXX: Best name?
|
||||
autocommands.trigger("ColorScheme", { name: scheme });
|
||||
else
|
||||
liberator.echoerr("E185: Cannot find color scheme " + scheme);
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user