TypeError: Cannot read property 'toFloat' of null
Closed this issue · 3 comments
/home/developer/projects/useragent-parser-comparison/parsers/whichbrowser-js-0/node_modules/which-browser/src/Analyser/Header/Useragent/Browser.js:1205
if (this.data.os.name === 'Windows Phone' && this.data.os.version.toFloat() >= 8) {
^
TypeError: Cannot read property 'toFloat' of null
at Useragent.detectUC (/home/developer/projects/useragent-parser-comparison/parsers/whichbrowser-js-0/node_modules/which-browser/src/Analyser/Header/Useragent/Browser.js:1205:75)
at Useragent.detectBrowser (/home/developer/projects/useragent-parser-comparison/parsers/whichbrowser-js-0/node_modules/which-browser/src/Analyser/Header/Useragent/Browser.js:33:22)
at new Useragent (/home/developer/projects/useragent-parser-comparison/parsers/whichbrowser-js-0/node_modules/which-browser/src/Analyser/Header/Useragent.js:15:27)
at Analyser.analyseUserAgent (/home/developer/projects/useragent-parser-comparison/parsers/whichbrowser-js-0/node_modules/which-browser/src/Analyser/Header.js:74:5)
at Analyser.analyseHeaders (/home/developer/projects/useragent-parser-comparison/parsers/whichbrowser-js-0/node_modules/which-browser/src/Analyser/Header.js:11:31)
at Analyser.analyse (/home/developer/projects/useragent-parser-comparison/parsers/whichbrowser-js-0/node_modules/which-browser/src/Analyser.js:45:27)
at Parser.analyse (/home/developer/projects/useragent-parser-comparison/parsers/whichbrowser-js-0/node_modules/which-browser/src/Parser.js:55:14)
at new Parser (/home/developer/projects/useragent-parser-comparison/parsers/whichbrowser-js-0/node_modules/which-browser/src/Parser.js:21:12)
at Interface. (/home/developer/projects/useragent-parser-comparison/parsers/whichbrowser-js-0/parse:34:17)
at Interface.emit (events.js:160:13)
Hi, thanks for reporting it. Can you provide the user agent used? Thanks
I'm not able to reproduce the error and to get the used useragent.