1
0
Fork 0
mirror of https://github.com/Ylianst/MeshCentral.git synced 2025-03-09 15:40:18 +00:00

Code cleanup.

This commit is contained in:
Ylian Saint-Hilaire 2020-06-15 16:37:02 -07:00
parent 72d9698dce
commit cf54f6f34b
15 changed files with 802 additions and 802 deletions

View file

@ -50,12 +50,12 @@ function WiFiScanner()
{
if (process.platform == 'win32')
{
this.master = require('ScriptContainer').Create(15, ContainerPermissions.DEFAULT);
this.master.parent = this;
this.master.on('data', function (j) { this.parent.emit('accessPoint', new AccessPoint(j.ssid, j.bssid, j.lq)); });
this.main = require('ScriptContainer').Create(15, ContainerPermissions.DEFAULT);
this.main.parent = this;
this.main.on('data', function (j) { this.parent.emit('accessPoint', new AccessPoint(j.ssid, j.bssid, j.lq)); });
this.master.addModule('wifi-scanner-windows', getJSModule('wifi-scanner-windows'));
this.master.ExecuteString(WindowsChildScript);
this.main.addModule('wifi-scanner-windows', getJSModule('wifi-scanner-windows'));
this.main.ExecuteString(WindowsChildScript);
}
else if (process.platform == 'linux')
{