Skip to content

Commit 58c8c27

Browse files
committed
Update Appliance
1 parent 7b6441c commit 58c8c27

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

src/Analyser/Header/Useragent/Device/Appliance.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ const Constants = require('../../../../constants');
55
class Appliance {
66
static detectAppliance(ua) {
77
Appliance.detectIOpener.call(this, ua);
8+
Appliance.detectWebLight.call(this, ua);
89
}
910

1011
/* Netpliance i-Opener */
@@ -18,6 +19,18 @@ class Appliance {
1819
});
1920
}
2021
}
22+
23+
/* KOMATSU WebLight */
24+
static detectWebLight(ua) {
25+
if (/KOMATSU.*WL\//u.test(ua)) {
26+
this.data.os.reset();
27+
this.data.device.setIdentification({
28+
manufacturer: 'KOMATSU',
29+
model: 'WebLight',
30+
type: Constants.deviceType.DESKTOP,
31+
});
32+
}
33+
}
2134
}
2235

2336
module.exports = Appliance;

0 commit comments

Comments
 (0)