{"action":"created","issue":{"url":"https://api.github.com/repos/arnoappenzeller/PiPifier/issues/13","repository_url":"https://api.github.com/repos/arnoappenzeller/PiPifier","labels_url":"https://api.github.com/repos/arnoappenzeller/PiPifier/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/arnoappenzeller/PiPifier/issues/13/comments","events_url":"https://api.github.com/repos/arnoappenzeller/PiPifier/issues/13/events","html_url":"https://github.com/arnoappenzeller/PiPifier/pull/13","id":183267523,"number":13,"title":"Replace activate event listener with onfocus","user":{"login":"kabiroberai","id":12706786,"avatar_url":"https://avatars.githubusercontent.com/u/12706786?v=3","gravatar_id":"","url":"https://api.github.com/users/kabiroberai","html_url":"https://github.com/kabiroberai","followers_url":"https://api.github.com/users/kabiroberai/followers","following_url":"https://api.github.com/users/kabiroberai/following{/other_user}","gists_url":"https://api.github.com/users/kabiroberai/gists{/gist_id}","starred_url":"https://api.github.com/users/kabiroberai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kabiroberai/subscriptions","organizations_url":"https://api.github.com/users/kabiroberai/orgs","repos_url":"https://api.github.com/users/kabiroberai/repos","events_url":"https://api.github.com/users/kabiroberai/events{/privacy}","received_events_url":"https://api.github.com/users/kabiroberai/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2016-10-16T13:41:57Z","updated_at":"2016-10-17T09:33:37Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/arnoappenzeller/PiPifier/pulls/13","html_url":"https://github.com/arnoappenzeller/PiPifier/pull/13","diff_url":"https://github.com/arnoappenzeller/PiPifier/pull/13.diff","patch_url":"https://github.com/arnoappenzeller/PiPifier/pull/13.patch"},"body":"For some reason, the `activate` event listener is not being called due to which the only way to validate the toolbar button when the tab is switched is via the MutationObserver. However, thanks to the checks that I had put in place earlier, the JS would not tell the Swift code to validate it since it had already told it to do so before.\r\n\r\nI have fixed this by removing the check entirely, although you should revert this PR if you figure out how to make the `activate` event listener work."},"comment":{"url":"https://api.github.com/repos/arnoappenzeller/PiPifier/issues/comments/254159113","html_url":"https://github.com/arnoappenzeller/PiPifier/pull/13#issuecomment-254159113","issue_url":"https://api.github.com/repos/arnoappenzeller/PiPifier/issues/13","id":254159113,"user":{"login":"kabiroberai","id":12706786,"avatar_url":"https://avatars.githubusercontent.com/u/12706786?v=3","gravatar_id":"","url":"https://api.github.com/users/kabiroberai","html_url":"https://github.com/kabiroberai","followers_url":"https://api.github.com/users/kabiroberai/followers","following_url":"https://api.github.com/users/kabiroberai/following{/other_user}","gists_url":"https://api.github.com/users/kabiroberai/gists{/gist_id}","starred_url":"https://api.github.com/users/kabiroberai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kabiroberai/subscriptions","organizations_url":"https://api.github.com/users/kabiroberai/orgs","repos_url":"https://api.github.com/users/kabiroberai/repos","events_url":"https://api.github.com/users/kabiroberai/events{/privacy}","received_events_url":"https://api.github.com/users/kabiroberai/received_events","type":"User","site_admin":false},"created_at":"2016-10-17T09:33:37Z","updated_at":"2016-10-17T09:33:37Z","body":"I'm reopening the PR now, because I fixed the issue (by adding the check back, but tweaking it a bit). Also, I've done a bit more cleanup."}}
{"actor":{"display_login":"kabiroberai"}}