Skip to content

Commit

Permalink
use Array.isArray() to check config.schemes.
Browse files Browse the repository at this point in the history
  • Loading branch information
baracudda committed Mar 6, 2024
1 parent f011ce4 commit 2e3877c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ window.showFlowEditor = (ele, config) => {
setHTTPTimeout(config.httpTimeout);
}
//<*((==<
if (config.schemes) {
if (Array.isArray(config.schemes)) {
SCHEMES.concat(config.schemes);
}

Expand Down

0 comments on commit 2e3877c

Please sign in to comment.