From c7bd8dc50ab6adf3382e62d4d79502a2b33834cd Mon Sep 17 00:00:00 2001 From: danbulant Date: Sun, 23 Jun 2019 14:53:23 +0200 Subject: [PATCH] require to module check --- html/node.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/html/node.js b/html/node.js index 8465b62..056834e 100644 --- a/html/node.js +++ b/html/node.js @@ -1,4 +1,4 @@ -if(typeof require != undefined){ +if(typeof module !== undefined){ var wifi, wifiQuality; // In renderer process (web page). const { ipcRenderer } = require('electron')