{"action":"created","issue":{"url":"https://api.github.com/repos/faisalman/ua-parser-js/issues/84","labels_url":"https://api.github.com/repos/faisalman/ua-parser-js/issues/84/labels{/name}","comments_url":"https://api.github.com/repos/faisalman/ua-parser-js/issues/84/comments","events_url":"https://api.github.com/repos/faisalman/ua-parser-js/issues/84/events","html_url":"https://github.com/faisalman/ua-parser-js/issues/84","id":50205033,"number":84,"title":"Troubles to find UA with browserify/reactjs?","user":{"login":"kud","id":655838,"avatar_url":"https://avatars.githubusercontent.com/u/655838?v=3","gravatar_id":"","url":"https://api.github.com/users/kud","html_url":"https://github.com/kud","followers_url":"https://api.github.com/users/kud/followers","following_url":"https://api.github.com/users/kud/following{/other_user}","gists_url":"https://api.github.com/users/kud/gists{/gist_id}","starred_url":"https://api.github.com/users/kud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kud/subscriptions","organizations_url":"https://api.github.com/users/kud/orgs","repos_url":"https://api.github.com/users/kud/repos","events_url":"https://api.github.com/users/kud/events{/privacy}","received_events_url":"https://api.github.com/users/kud/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2014-11-26T17:17:41Z","updated_at":"2015-01-07T07:11:25Z","closed_at":null,"body":"I have no clue why but with browserify/reactjs, I had to do this:\r\n\r\n```javascript\r\nvar parser = new UAParser()\r\nparser.setUA(window.navigator.userAgent) // mandatory\r\n\r\nvar result = parser.getResult()\r\n```\r\n\r\nwithout setting ua myself via `setUA`, it returns `undefined` everywhere."},"comment":{"url":"https://api.github.com/repos/faisalman/ua-parser-js/issues/comments/68986530","html_url":"https://github.com/faisalman/ua-parser-js/issues/84#issuecomment-68986530","issue_url":"https://api.github.com/repos/faisalman/ua-parser-js/issues/84","id":68986530,"user":{"login":"jtwalters","id":153132,"avatar_url":"https://avatars.githubusercontent.com/u/153132?v=3","gravatar_id":"","url":"https://api.github.com/users/jtwalters","html_url":"https://github.com/jtwalters","followers_url":"https://api.github.com/users/jtwalters/followers","following_url":"https://api.github.com/users/jtwalters/following{/other_user}","gists_url":"https://api.github.com/users/jtwalters/gists{/gist_id}","starred_url":"https://api.github.com/users/jtwalters/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jtwalters/subscriptions","organizations_url":"https://api.github.com/users/jtwalters/orgs","repos_url":"https://api.github.com/users/jtwalters/repos","events_url":"https://api.github.com/users/jtwalters/events{/privacy}","received_events_url":"https://api.github.com/users/jtwalters/received_events","type":"User","site_admin":false},"created_at":"2015-01-07T07:11:25Z","updated_at":"2015-01-07T07:11:25Z","body":"It's true, I had the same issue. Wish I had looked here first!\r\n\r\nI believe that in browserify, `this` is the same as `exports`."}}