{"action":"created","issue":{"url":"https://api.github.com/repos/sindresorhus/github-notifier-firefox/issues/7","labels_url":"https://api.github.com/repos/sindresorhus/github-notifier-firefox/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/sindresorhus/github-notifier-firefox/issues/7/comments","events_url":"https://api.github.com/repos/sindresorhus/github-notifier-firefox/issues/7/events","html_url":"https://github.com/sindresorhus/github-notifier-firefox/pull/7","id":58147902,"number":7,"title":"Activate another tab if is Notification page is open.","user":{"login":"carlesso","id":207895,"avatar_url":"https://avatars.githubusercontent.com/u/207895?v=3","gravatar_id":"","url":"https://api.github.com/users/carlesso","html_url":"https://github.com/carlesso","followers_url":"https://api.github.com/users/carlesso/followers","following_url":"https://api.github.com/users/carlesso/following{/other_user}","gists_url":"https://api.github.com/users/carlesso/gists{/gist_id}","starred_url":"https://api.github.com/users/carlesso/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/carlesso/subscriptions","organizations_url":"https://api.github.com/users/carlesso/orgs","repos_url":"https://api.github.com/users/carlesso/repos","events_url":"https://api.github.com/users/carlesso/events{/privacy}","received_events_url":"https://api.github.com/users/carlesso/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-02-18T23:47:34Z","updated_at":"2015-02-19T11:06:37Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/sindresorhus/github-notifier-firefox/pulls/7","html_url":"https://github.com/sindresorhus/github-notifier-firefox/pull/7","diff_url":"https://github.com/sindresorhus/github-notifier-firefox/pull/7.diff","patch_url":"https://github.com/sindresorhus/github-notifier-firefox/pull/7.patch"},"body":"Hi! I've added a small check to all open tabs to eventually activate the first one found. Let me know if you find this useful.\r\n\r\nNot only check if current tab is the notification panel, but also check if any other tab is the `notifUrl`, and eventually `.activate()` and `.reload()` it."},"comment":{"url":"https://api.github.com/repos/sindresorhus/github-notifier-firefox/issues/comments/75034712","html_url":"https://github.com/sindresorhus/github-notifier-firefox/pull/7#issuecomment-75034712","issue_url":"https://api.github.com/repos/sindresorhus/github-notifier-firefox/issues/7","id":75034712,"user":{"login":"carlesso","id":207895,"avatar_url":"https://avatars.githubusercontent.com/u/207895?v=3","gravatar_id":"","url":"https://api.github.com/users/carlesso","html_url":"https://github.com/carlesso","followers_url":"https://api.github.com/users/carlesso/followers","following_url":"https://api.github.com/users/carlesso/following{/other_user}","gists_url":"https://api.github.com/users/carlesso/gists{/gist_id}","starred_url":"https://api.github.com/users/carlesso/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/carlesso/subscriptions","organizations_url":"https://api.github.com/users/carlesso/orgs","repos_url":"https://api.github.com/users/carlesso/repos","events_url":"https://api.github.com/users/carlesso/events{/privacy}","received_events_url":"https://api.github.com/users/carlesso/received_events","type":"User","site_admin":false},"created_at":"2015-02-19T11:06:37Z","updated_at":"2015-02-19T11:06:37Z","body":"If you have more tabs open at `notifUrl` and you are in one of them, there is a chance that using the button will bring you to the other tab instead of refreshing the current tab. It's a limit case and the behavior is not _wrong_ in my opinion, so to keep the code simple and short this is how it works."}}