瀏覽代碼

fix: conditions

charlie 3 年之前
父節點
當前提交
fd92a53940
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      gulpfile.js

+ 1 - 1
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) {