Skip to content

Commit d7486fd

Browse files
fix: revert
1 parent aed5cce commit d7486fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/BannerPlugin.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class BannerPlugin {
3838

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

41-
if (["string", "function"].indexOf(typeof options) !== -1) {
41+
if (typeof options === "string" || typeof options === "function") {
4242
options = {
4343
banner: options
4444
};

0 commit comments

Comments
 (0)