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

Remove unnecessary use of typeof when setting the default value of 'cpt'.

This commit is contained in:
Doug Kearns
2010-10-21 05:27:56 +11:00
parent f4b1617990
commit a78a9d536d

View File

@@ -899,7 +899,7 @@ const Completion = Module("completion", {
options.add(["complete", "cpt"],
"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)
});