We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aed5cce commit d7486fdCopy full SHA for d7486fd
lib/BannerPlugin.js
@@ -38,7 +38,7 @@ class BannerPlugin {
38
39
validateOptions(schema, options, "Banner Plugin");
40
41
- if (["string", "function"].indexOf(typeof options) !== -1) {
+ if (typeof options === "string" || typeof options === "function") {
42
options = {
43
banner: options
44
};
0 commit comments