From fd92a53940f7322ad73598c629b22a1882f450f8 Mon Sep 17 00:00:00 2001 From: charlie Date: Thu, 1 Sep 2022 12:20:57 +0800 Subject: [PATCH] fix: conditions --- gulpfile.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gulpfile.js b/gulpfile.js index 788576ffdaa..8046e0073c3 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -92,7 +92,7 @@ const common = { const IP = ip.address() const LOGSEQ_APP_SERVER_URL = `http://${IP}:3001` - if (typeof global.fetch != null) { + if (typeof global.fetch === 'function') { try { await fetch(LOGSEQ_APP_SERVER_URL) } catch (e) {