[extensions] Detect OS from WhatsApp user agent

This commit is contained in:
Faisal Salman
2025-03-11 17:50:36 +07:00
parent 8f545f9e3f
commit f7f64a31ea
2 changed files with 14 additions and 0 deletions

View File

@@ -61,6 +61,12 @@ describe('Extensions', () => {
major: '1',
type: 'fetcher'
});
const whatsapp = "WhatsApp/2.0 A";
assert.deepEqual(new UAParser(whatsapp, Fetchers).getOS(), {
name : 'Android',
version : undefined
});
});
describe('Merge', () => {