Skip to content
Permalink
Browse files
fix: revert
  • Loading branch information
jamesgeorge007 committed Aug 11, 2019
1 parent aed5cce commit d7486fdb3063cd61c52848db48932bf3b3fccfcd
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 (["string", "function"].indexOf(typeof options) !== -1) {
if (typeof options === "string" || typeof options === "function") {
options = {
banner: options
};

0 comments on commit d7486fd

Please sign in to comment.