Skip to content

Commit a57afcb

Browse files
committed
Update Phone
1 parent bdadfcc commit a57afcb

1 file changed

Lines changed: 17 additions & 1 deletion

File tree

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

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const Constants = require('../../../../constants');
44

55
class Printer {
66
static detectPrinter(ua) {
7-
if (!/(TASKalfa|CanonIJCL|PrintSmart)/iu.test(ua)) {
7+
if (!/(TASKalfa|CanonIJCL|IR-S|PrintSmart|EpsonHello)/iu.test(ua)) {
88
return;
99
}
1010
let match;
@@ -24,6 +24,14 @@ class Printer {
2424
type: Constants.deviceType.PRINTER,
2525
});
2626
}
27+
/* Canon iR S */
28+
if (/IR-S/iu.test(ua)) {
29+
this.data.device.setIdentification({
30+
manufacturer: 'Canon',
31+
model: 'imageRUNNER',
32+
type: Constants.deviceType.PRINTER,
33+
});
34+
}
2735
/* HP Web PrintSmart */
2836
if (/HP Web PrintSmart/iu.test(ua)) {
2937
this.data.device.setIdentification({
@@ -32,6 +40,14 @@ class Printer {
3240
type: Constants.deviceType.PRINTER,
3341
});
3442
}
43+
/* Epson Hello */
44+
if (/EpsonHello\//iu.test(ua)) {
45+
this.data.device.setIdentification({
46+
manufacturer: 'Epson',
47+
model: 'Hello',
48+
type: Constants.deviceType.PRINTER,
49+
});
50+
}
3551
}
3652
}
3753

0 commit comments

Comments
 (0)