{"action":"created","issue":{"url":"https://api.github.com/repos/syncthing/syncthing/issues/2835","repository_url":"https://api.github.com/repos/syncthing/syncthing","labels_url":"https://api.github.com/repos/syncthing/syncthing/issues/2835/labels{/name}","comments_url":"https://api.github.com/repos/syncthing/syncthing/issues/2835/comments","events_url":"https://api.github.com/repos/syncthing/syncthing/issues/2835/events","html_url":"https://github.com/syncthing/syncthing/pull/2835","id":140175492,"number":2835,"title":"Show jserror indicator in dev mode","user":{"login":"lkwg82","id":1891171,"avatar_url":"https://avatars.githubusercontent.com/u/1891171?v=3","gravatar_id":"","url":"https://api.github.com/users/lkwg82","html_url":"https://github.com/lkwg82","followers_url":"https://api.github.com/users/lkwg82/followers","following_url":"https://api.github.com/users/lkwg82/following{/other_user}","gists_url":"https://api.github.com/users/lkwg82/gists{/gist_id}","starred_url":"https://api.github.com/users/lkwg82/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lkwg82/subscriptions","organizations_url":"https://api.github.com/users/lkwg82/orgs","repos_url":"https://api.github.com/users/lkwg82/repos","events_url":"https://api.github.com/users/lkwg82/events{/privacy}","received_events_url":"https://api.github.com/users/lkwg82/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-03-11T12:46:47Z","updated_at":"2016-03-11T13:26:21Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/syncthing/syncthing/pulls/2835","html_url":"https://github.com/syncthing/syncthing/pull/2835","diff_url":"https://github.com/syncthing/syncthing/pull/2835.diff","patch_url":"https://github.com/syncthing/syncthing/pull/2835.patch"},"body":"### Purpose\r\n\r\nThis shows in case of a js warning or error a yellow bar at the top (only in development versions). This dev tool improvement aims to increase maintenance (early bug detection).\r\nError must log into ```console.error``` or ```console.warn```.\r\n\r\n(Besides I added a fix for a 'undefined' error)\r\n\r\n(Disclaimer: this is not intended to win design awards. ;))\r\n\r\n### Testing\r\n\r\nRun a version which has 'dirty' in its version string and provoke a js error. \r\n\r\n### Screenshots\r\n\r\n![logbar_when_errors](https://cloud.githubusercontent.com/assets/1891171/13702369/7c45e276-e78e-11e5-8165-eab88c2970ef.png)\r\n"},"comment":{"url":"https://api.github.com/repos/syncthing/syncthing/issues/comments/195361574","html_url":"https://github.com/syncthing/syncthing/pull/2835#issuecomment-195361574","issue_url":"https://api.github.com/repos/syncthing/syncthing/issues/2835","id":195361574,"user":{"login":"calmh","id":125426,"avatar_url":"https://avatars.githubusercontent.com/u/125426?v=3","gravatar_id":"","url":"https://api.github.com/users/calmh","html_url":"https://github.com/calmh","followers_url":"https://api.github.com/users/calmh/followers","following_url":"https://api.github.com/users/calmh/following{/other_user}","gists_url":"https://api.github.com/users/calmh/gists{/gist_id}","starred_url":"https://api.github.com/users/calmh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/calmh/subscriptions","organizations_url":"https://api.github.com/users/calmh/orgs","repos_url":"https://api.github.com/users/calmh/repos","events_url":"https://api.github.com/users/calmh/events{/privacy}","received_events_url":"https://api.github.com/users/calmh/received_events","type":"User","site_admin":false},"created_at":"2016-03-11T13:26:21Z","updated_at":"2016-03-11T13:26:21Z","body":"To be clear, I meant \"does this bring up the ugly error bar in the following common situations that are not JS errors\". :)"}}