diff --git a/html/node.js b/html/node.js
index 54bdfb9..a896bf7 100644
--- a/html/node.js
+++ b/html/node.js
@@ -1,4 +1,4 @@
-if(typeof module !== undefined){
+if(typeof require !== typeof undefined){
var wifi, wifiQuality;
// In renderer process (web page).
const { ipcRenderer } = require('electron')