Ubuntu 18.04 not recognized as Linux using firefox nightly
Closed this issue · 5 comments
Pepijn98 commented
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.
ironmaniiith commented
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);
Pepijn98 commented
It was a lot of lines so I put it in a hastebin hope that's good too.
https://hastebin.com/isakegonim.php
ironmaniiith commented
Looks like navigator.appVersion
is not reliable anymore.
ironmaniiith commented
Fixed here
Thanks for bringing this into notice
Pepijn98 commented
No problem, thanks for the quick fix