mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-21 23:27:58 +01:00
Remove unnecessary use of typeof when setting the default value of 'cpt'.
This commit is contained in:
@@ -899,7 +899,7 @@ const Completion = Module("completion", {
|
|||||||
|
|
||||||
options.add(["complete", "cpt"],
|
options.add(["complete", "cpt"],
|
||||||
"Items which are completed at the :open prompts",
|
"Items which are completed at the :open prompts",
|
||||||
"charlist", typeof(config.defaults["complete"]) == "string" ? config.defaults["complete"] : "slf",
|
"charlist", config.defaults.complete == null ? "slf" : config.defaults.complete,
|
||||||
{
|
{
|
||||||
completer: function (context) values(completion.urlCompleters)
|
completer: function (context) values(completion.urlCompleters)
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user