refactor
This commit is contained in:
parent
133862b5e3
commit
fa3b3ef044
|
@ -38,7 +38,7 @@ class BannerPlugin {
|
|||
|
||||
validateOptions(schema, options, "Banner Plugin");
|
||||
|
||||
if (typeof options === "string" || typeof options === "function") {
|
||||
if (["string", "function"].indexOf(typeof options) !== -1) {
|
||||
options = {
|
||||
banner: options
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue