{"action":"created","issue":{"url":"https://api.github.com/repos/thelounge/lounge/issues/103","repository_url":"https://api.github.com/repos/thelounge/lounge","labels_url":"https://api.github.com/repos/thelounge/lounge/issues/103/labels{/name}","comments_url":"https://api.github.com/repos/thelounge/lounge/issues/103/comments","events_url":"https://api.github.com/repos/thelounge/lounge/issues/103/events","html_url":"https://github.com/thelounge/lounge/pull/103","id":136232214,"number":103,"title":"Wrap badge and notifications in try/catch","user":{"login":"maxpoulin64","id":5481612,"avatar_url":"https://avatars.githubusercontent.com/u/5481612?v=3","gravatar_id":"","url":"https://api.github.com/users/maxpoulin64","html_url":"https://github.com/maxpoulin64","followers_url":"https://api.github.com/users/maxpoulin64/followers","following_url":"https://api.github.com/users/maxpoulin64/following{/other_user}","gists_url":"https://api.github.com/users/maxpoulin64/gists{/gist_id}","starred_url":"https://api.github.com/users/maxpoulin64/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maxpoulin64/subscriptions","organizations_url":"https://api.github.com/users/maxpoulin64/orgs","repos_url":"https://api.github.com/users/maxpoulin64/repos","events_url":"https://api.github.com/users/maxpoulin64/events{/privacy}","received_events_url":"https://api.github.com/users/maxpoulin64/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/thelounge/lounge/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-02-25T00:14:51Z","updated_at":"2016-02-25T08:01:44Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/thelounge/lounge/pulls/103","html_url":"https://github.com/thelounge/lounge/pull/103","diff_url":"https://github.com/thelounge/lounge/pull/103.diff","patch_url":"https://github.com/thelounge/lounge/pull/103.patch"},"body":"This fixes a somewhat rare/unusual bug where if bots dumps too much output to the user (such as `/msg ChanServ help` commands or `/msg *status help`), it crashes the client and reloads. Also fixes an Android deprecation issue with notifications that also crashed the client.\r\n\r\nAs a general rule I think crashing on notifications is a bit silly so I just wrapped the whole thing in a try/catch."},"comment":{"url":"https://api.github.com/repos/thelounge/lounge/issues/comments/188662475","html_url":"https://github.com/thelounge/lounge/pull/103#issuecomment-188662475","issue_url":"https://api.github.com/repos/thelounge/lounge/issues/103","id":188662475,"user":{"login":"maxpoulin64","id":5481612,"avatar_url":"https://avatars.githubusercontent.com/u/5481612?v=3","gravatar_id":"","url":"https://api.github.com/users/maxpoulin64","html_url":"https://github.com/maxpoulin64","followers_url":"https://api.github.com/users/maxpoulin64/followers","following_url":"https://api.github.com/users/maxpoulin64/following{/other_user}","gists_url":"https://api.github.com/users/maxpoulin64/gists{/gist_id}","starred_url":"https://api.github.com/users/maxpoulin64/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maxpoulin64/subscriptions","organizations_url":"https://api.github.com/users/maxpoulin64/orgs","repos_url":"https://api.github.com/users/maxpoulin64/repos","events_url":"https://api.github.com/users/maxpoulin64/events{/privacy}","received_events_url":"https://api.github.com/users/maxpoulin64/received_events","type":"User","site_admin":false},"created_at":"2016-02-25T08:01:44Z","updated_at":"2016-02-25T08:01:44Z","body":"@xPaw #100 indeed fixes the crash I had.\r\n\r\nDo you have any idea for the other one? This is the problem: [StackOverflow](http://stackoverflow.com/questions/31512504/html5-notification-not-working-in-mobile-chrome). Calling `new Notification()` throws an exception that says to use service workers, but that method looks somewhat complicated."}}