From 2e3877ca70b9d0f8dd764e9924d0f6587cbd56fa Mon Sep 17 00:00:00 2001 From: Ryan Fischbach Date: Wed, 6 Mar 2024 12:02:52 -0800 Subject: [PATCH] use Array.isArray() to check config.schemes. --- src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index 38809226..a3a42317 100644 --- a/src/index.js +++ b/src/index.js @@ -24,7 +24,7 @@ window.showFlowEditor = (ele, config) => { setHTTPTimeout(config.httpTimeout); } //<*((==< - if (config.schemes) { + if (Array.isArray(config.schemes)) { SCHEMES.concat(config.schemes); }