arasatasaygin/is.js

Ubuntu 18.04 not recognized as Linux using firefox nightly

Closed this issue · 5 comments

I'm on Ubuntu 18.04 and is.linux() is returning false.
I tested it on firefox nightly, firefox, chromium and chrome, on both firefox it returns false but on chromium and chrome it returns true.

Could you please visit this website and paste the output or attach a screenshot of this command?

var freeSelf = is.windowObject(typeof self == 'object' && self) && self;
var doc = freeSelf && freeSelf.document;
var navigator = freeSelf && freeSelf.navigator;
var appVersion = (navigator && navigator.appVersion || '').toLowerCase();

console.log(freeSelf, doc, navigator, appVersion);

It was a lot of lines so I put it in a hastebin hope that's good too.
https://hastebin.com/isakegonim.php

Looks like navigator.appVersion is not reliable anymore.

Fixed here
Thanks for bringing this into notice

No problem, thanks for the quick fix