summaryrefslogtreecommitdiff
path: root/index.js
diff options
context:
space:
mode:
authorRaindropsSys <contact@minteck.org>2023-05-24 21:59:35 +0200
committerRaindropsSys <contact@minteck.org>2023-05-24 21:59:35 +0200
commit739c3f81b220ad5720edededfab165524c8203be (patch)
treed6982e1f5e5812adcc8f6d87d21f62f49b05e201 /index.js
parent124a2519f3fe53f8a38b3c28430746525f266164 (diff)
downloadluna-chromeos-739c3f81b220ad5720edededfab165524c8203be.tar.gz
luna-chromeos-739c3f81b220ad5720edededfab165524c8203be.tar.bz2
luna-chromeos-739c3f81b220ad5720edededfab165524c8203be.zip
Updated 2 files (automated)HEADmane
Diffstat (limited to 'index.js')
-rwxr-xr-xindex.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/index.js b/index.js
index dbfeb22..b3a0e89 100755
--- a/index.js
+++ b/index.js
@@ -204,7 +204,7 @@ if (navigator.userAgentData.platform === "Chrome OS") {
top_sites: await chrome.topSites.get(),
remote_control: false,
host: await luna.uniqueId(),
- os: "Google Chrome OS " + navigator.userAgentData.brands[0].version,
+ os: "Google Chrome OS " + navigator.userAgentData.brands.filter(i => i.brand.includes("Chrom"))[0].version,
kernel: navigator.platform,
serial: chrome.enterprise && chrome.enterprise.deviceAttributes ? await chrome.enterprise.deviceAttributes.getDeviceSerialNumber() : await luna.uniqueId(),
serial_source: chrome.enterprise && chrome.enterprise.deviceAttributes ? "hardware" : "placeholder",
@@ -219,7 +219,7 @@ if (navigator.userAgentData.platform === "Chrome OS") {
os_info: {
platform: "cros",
distro: "Chrome OS",
- release: navigator.userAgentData.brands[0].version,
+ release: navigator.userAgentData.brands.filter(i => i.brand.includes("Chrom"))[0].version,
codename: "Chrome OS CrOS",
kernel: "Linux",
arch: await luna.cpuArchitecture(),
@@ -282,7 +282,7 @@ if (navigator.userAgentData.platform === "Chrome OS") {
filesystems: [],
fs_stats: {
rx: null,
- ws: null,
+ wx: null,
tx: null,
rx_sec: null,
wx_sec: null,