Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
refactor
  • Loading branch information
jamesgeorge007 committed Aug 10, 2019
1 parent 133862b commit fa3b3ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/BannerPlugin.js
Expand Up @@ -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
};
Expand Down

0 comments on commit fa3b3ef

Please sign in to comment.