Browse Source

fix: conditions

charlie 3 years ago
parent
commit
fd92a53940
1 changed files with 1 additions and 1 deletions
  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) {