Skip to content

Commit

Permalink
fix: revert
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesgeorge007 committed Aug 11, 2019
1 parent aed5cce commit d7486fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/BannerPlugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class BannerPlugin {

validateOptions(schema, options, "Banner Plugin");

if (["string", "function"].indexOf(typeof options) !== -1) {
if (typeof options === "string" || typeof options === "function") {
options = {
banner: options
};
Expand Down

0 comments on commit d7486fd

Please sign in to comment.