Comparing version 1.4.6 to 1.4.7
36
index.js
@@ -16,3 +16,3 @@ // @ts-ignore | ||
const id = appVersion; | ||
const platform = "web"; | ||
const platform = "Web"; | ||
const os = null; | ||
@@ -36,20 +36,18 @@ const serial = null; | ||
if (appVersion && model && manufacturer) { | ||
socket.emit( | ||
"device", | ||
{ | ||
app_Version: appVersion, | ||
model: model, | ||
id: appVersion, | ||
platform: "Web", | ||
os: null, | ||
serial: null, | ||
manufacturer: manufacturer, | ||
}, | ||
() => { | ||
console.log("Device emited!"); | ||
return true; | ||
} | ||
); | ||
} | ||
socket.emit( | ||
"device", | ||
{ | ||
app_Version: appVersion, | ||
model: model, | ||
id: id, | ||
platform: platform, | ||
os: os, | ||
serial: serial, | ||
manufacturer: manufacturer, | ||
}, | ||
() => { | ||
console.log("Device emited!"); | ||
return true; | ||
} | ||
); | ||
@@ -56,0 +54,0 @@ socket.on("connect_error", (error) => { |
@@ -7,3 +7,3 @@ { | ||
"name": "sockettwo", | ||
"version": "1.4.6", | ||
"version": "1.4.7", | ||
"main": "index.js", | ||
@@ -10,0 +10,0 @@ "scripts": { |
5232
169