Skip to content
Permalink
Browse files
refactor
  • Loading branch information
jamesgeorge007 committed Aug 10, 2019
1 parent 133862b commit fa3b3ef04460a0cb7d9dd5eb08c5897884b80d1b
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/BannerPlugin.js
@@ -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
};

0 comments on commit fa3b3ef

Please sign in to comment.