polygonjs-engine
Version:
node-based webgl 3D engine https://polygonjs.com
10 lines (9 loc) • 377 B
text/typescript
export class CoreUserAgent {
// user agent on linux with chrome
// "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36"
// user agent on linux with firefox
// "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:83.0) Gecko/20100101 Firefox/83.0"
static is_chrome() {
return navigator.userAgent.indexOf('Chrome') != -1;
}
}