{"action":"created","comment":{"url":"https://api.github.com/repos/sindresorhus/caprine/pulls/comments/61672579","id":61672579,"diff_hunk":"@@ -57,10 +58,12 @@ ipc.on('archive-conversation', () => {\n \n ipc.on('dark-mode', toggleDarkMode);\n \n-app.on('platform-theme-changed', () => {\n-\tstorage.set('darkMode', app.isDarkMode());\n-\tsetDarkMode();\n-});\n+if (process.platform === 'darwin') {\n+\tosxAppearance.onDarkModeChanged(() => {","path":"browser.js","position":20,"original_position":20,"commit_id":"4c8e99379c89ef31d00fc13147759ceff15af2d1","original_commit_id":"4c8e99379c89ef31d00fc13147759ceff15af2d1","user":{"login":"sindresorhus","id":170270,"avatar_url":"https://avatars.githubusercontent.com/u/170270?v=3","gravatar_id":"","url":"https://api.github.com/users/sindresorhus","html_url":"https://github.com/sindresorhus","followers_url":"https://api.github.com/users/sindresorhus/followers","following_url":"https://api.github.com/users/sindresorhus/following{/other_user}","gists_url":"https://api.github.com/users/sindresorhus/gists{/gist_id}","starred_url":"https://api.github.com/users/sindresorhus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sindresorhus/subscriptions","organizations_url":"https://api.github.com/users/sindresorhus/orgs","repos_url":"https://api.github.com/users/sindresorhus/repos","events_url":"https://api.github.com/users/sindresorhus/events{/privacy}","received_events_url":"https://api.github.com/users/sindresorhus/received_events","type":"User","site_admin":false},"body":"`prefs.subscribeNotification('AppleInterfaceThemeChangedNotification', () => {`","created_at":"2016-04-30T17:48:20Z","updated_at":"2016-04-30T17:48:20Z","html_url":"https://github.com/sindresorhus/caprine/pull/87#discussion_r61672579","pull_request_url":"https://api.github.com/repos/sindresorhus/caprine/pulls/87","_links":{"self":{"href":"https://api.github.com/repos/sindresorhus/caprine/pulls/comments/61672579"},"html":{"href":"https://github.com/sindresorhus/caprine/pull/87#discussion_r61672579"},"pull_request":{"href":"https://api.github.com/repos/sindresorhus/caprine/pulls/87"}}},"pull_request":{"url":"https://api.github.com/repos/sindresorhus/caprine/pulls/87","id":68473969,"html_url":"https://github.com/sindresorhus/caprine/pull/87","diff_url":"https://github.com/sindresorhus/caprine/pull/87.diff","patch_url":"https://github.com/sindresorhus/caprine/pull/87.patch","issue_url":"https://api.github.com/repos/sindresorhus/caprine/issues/87","number":87,"state":"open","locked":false,"title":"Bump Electron to 0.37.8 and fix deprecated methods","user":{"login":"danhp","id":3745612,"avatar_url":"https://avatars.githubusercontent.com/u/3745612?v=3","gravatar_id":"","url":"https://api.github.com/users/danhp","html_url":"https://github.com/danhp","followers_url":"https://api.github.com/users/danhp/followers","following_url":"https://api.github.com/users/danhp/following{/other_user}","gists_url":"https://api.github.com/users/danhp/gists{/gist_id}","starred_url":"https://api.github.com/users/danhp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danhp/subscriptions","organizations_url":"https://api.github.com/users/danhp/orgs","repos_url":"https://api.github.com/users/danhp/repos","events_url":"https://api.github.com/users/danhp/events{/privacy}","received_events_url":"https://api.github.com/users/danhp/received_events","type":"User","site_admin":false},"body":"Bump to 0.37.8 to fix #83 \r\nAlso use https://github.com/danhp/electron-osx-appearance as `app.isDarkMode()` and `platform-theme-changed` event got deprecated. Ref https://github.com/electron/electron/pull/5282","created_at":"2016-04-30T17:36:48Z","updated_at":"2016-04-30T17:48:20Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ad55e62a391a10289aaabb772d72a33f0485c67d","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/sindresorhus/caprine/pulls/87/commits","review_comments_url":"https://api.github.com/repos/sindresorhus/caprine/pulls/87/comments","review_comment_url":"https://api.github.com/repos/sindresorhus/caprine/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sindresorhus/caprine/issues/87/comments","statuses_url":"https://api.github.com/repos/sindresorhus/caprine/statuses/4c8e99379c89ef31d00fc13147759ceff15af2d1","head":{"label":"danhp:bump-electron","ref":"bump-electron","sha":"4c8e99379c89ef31d00fc13147759ceff15af2d1","user":{"login":"danhp","id":3745612,"avatar_url":"https://avatars.githubusercontent.com/u/3745612?v=3","gravatar_id":"","url":"https://api.github.com/users/danhp","html_url":"https://github.com/danhp","followers_url":"https://api.github.com/users/danhp/followers","following_url":"https://api.github.com/users/danhp/following{/other_user}","gists_url":"https://api.github.com/users/danhp/gists{/gist_id}","starred_url":"https://api.github.com/users/danhp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danhp/subscriptions","organizations_url":"https://api.github.com/users/danhp/orgs","repos_url":"https://api.github.com/users/danhp/repos","events_url":"https://api.github.com/users/danhp/events{/privacy}","received_events_url":"https://api.github.com/users/danhp/received_events","type":"User","site_admin":false},"repo":{"id":46496434,"name":"caprine","full_name":"danhp/caprine","owner":{"login":"danhp","id":3745612,"avatar_url":"https://avatars.githubusercontent.com/u/3745612?v=3","gravatar_id":"","url":"https://api.github.com/users/danhp","html_url":"https://github.com/danhp","followers_url":"https://api.github.com/users/danhp/followers","following_url":"https://api.github.com/users/danhp/following{/other_user}","gists_url":"https://api.github.com/users/danhp/gists{/gist_id}","starred_url":"https://api.github.com/users/danhp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danhp/subscriptions","organizations_url":"https://api.github.com/users/danhp/orgs","repos_url":"https://api.github.com/users/danhp/repos","events_url":"https://api.github.com/users/danhp/events{/privacy}","received_events_url":"https://api.github.com/users/danhp/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/danhp/caprine","description":"Unofficial Facebook Messenger app","fork":true,"url":"https://api.github.com/repos/danhp/caprine","forks_url":"https://api.github.com/repos/danhp/caprine/forks","keys_url":"https://api.github.com/repos/danhp/caprine/keys{/key_id}","collaborators_url":"https://api.github.com/repos/danhp/caprine/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/danhp/caprine/teams","hooks_url":"https://api.github.com/repos/danhp/caprine/hooks","issue_events_url":"https://api.github.com/repos/danhp/caprine/issues/events{/number}","events_url":"https://api.github.com/repos/danhp/caprine/events","assignees_url":"https://api.github.com/repos/danhp/caprine/assignees{/user}","branches_url":"https://api.github.com/repos/danhp/caprine/branches{/branch}","tags_url":"https://api.github.com/repos/danhp/caprine/tags","blobs_url":"https://api.github.com/repos/danhp/caprine/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/danhp/caprine/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/danhp/caprine/git/refs{/sha}","trees_url":"https://api.github.com/repos/danhp/caprine/git/trees{/sha}","statuses_url":"https://api.github.com/repos/danhp/caprine/statuses/{sha}","languages_url":"https://api.github.com/repos/danhp/caprine/languages","stargazers_url":"https://api.github.com/repos/danhp/caprine/stargazers","contributors_url":"https://api.github.com/repos/danhp/caprine/contributors","subscribers_url":"https://api.github.com/repos/danhp/caprine/subscribers","subscription_url":"https://api.github.com/repos/danhp/caprine/subscription","commits_url":"https://api.github.com/repos/danhp/caprine/commits{/sha}","git_commits_url":"https://api.github.com/repos/danhp/caprine/git/commits{/sha}","comments_url":"https://api.github.com/repos/danhp/caprine/comments{/number}","issue_comment_url":"https://api.github.com/repos/danhp/caprine/issues/comments{/number}","contents_url":"https://api.github.com/repos/danhp/caprine/contents/{+path}","compare_url":"https://api.github.com/repos/danhp/caprine/compare/{base}...{head}","merges_url":"https://api.github.com/repos/danhp/caprine/merges","archive_url":"https://api.github.com/repos/danhp/caprine/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/danhp/caprine/downloads","issues_url":"https://api.github.com/repos/danhp/caprine/issues{/number}","pulls_url":"https://api.github.com/repos/danhp/caprine/pulls{/number}","milestones_url":"https://api.github.com/repos/danhp/caprine/milestones{/number}","notifications_url":"https://api.github.com/repos/danhp/caprine/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/danhp/caprine/labels{/name}","releases_url":"https://api.github.com/repos/danhp/caprine/releases{/id}","deployments_url":"https://api.github.com/repos/danhp/caprine/deployments","created_at":"2015-11-19T14:12:07Z","updated_at":"2016-01-30T03:30:41Z","pushed_at":"2016-04-30T17:28:48Z","git_url":"git://github.com/danhp/caprine.git","ssh_url":"git@github.com:danhp/caprine.git","clone_url":"https://github.com/danhp/caprine.git","svn_url":"https://github.com/danhp/caprine","homepage":null,"size":2444,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"sindresorhus:master","ref":"master","sha":"6b49a4118a693242479b9f168e81b592c0baa2da","user":{"login":"sindresorhus","id":170270,"avatar_url":"https://avatars.githubusercontent.com/u/170270?v=3","gravatar_id":"","url":"https://api.github.com/users/sindresorhus","html_url":"https://github.com/sindresorhus","followers_url":"https://api.github.com/users/sindresorhus/followers","following_url":"https://api.github.com/users/sindresorhus/following{/other_user}","gists_url":"https://api.github.com/users/sindresorhus/gists{/gist_id}","starred_url":"https://api.github.com/users/sindresorhus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sindresorhus/subscriptions","organizations_url":"https://api.github.com/users/sindresorhus/orgs","repos_url":"https://api.github.com/users/sindresorhus/repos","events_url":"https://api.github.com/users/sindresorhus/events{/privacy}","received_events_url":"https://api.github.com/users/sindresorhus/received_events","type":"User","site_admin":false},"repo":{"id":42574339,"name":"caprine","full_name":"sindresorhus/caprine","owner":{"login":"sindresorhus","id":170270,"avatar_url":"https://avatars.githubusercontent.com/u/170270?v=3","gravatar_id":"","url":"https://api.github.com/users/sindresorhus","html_url":"https://github.com/sindresorhus","followers_url":"https://api.github.com/users/sindresorhus/followers","following_url":"https://api.github.com/users/sindresorhus/following{/other_user}","gists_url":"https://api.github.com/users/sindresorhus/gists{/gist_id}","starred_url":"https://api.github.com/users/sindresorhus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sindresorhus/subscriptions","organizations_url":"https://api.github.com/users/sindresorhus/orgs","repos_url":"https://api.github.com/users/sindresorhus/repos","events_url":"https://api.github.com/users/sindresorhus/events{/privacy}","received_events_url":"https://api.github.com/users/sindresorhus/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sindresorhus/caprine","description":"Unofficial Facebook Messenger app","fork":false,"url":"https://api.github.com/repos/sindresorhus/caprine","forks_url":"https://api.github.com/repos/sindresorhus/caprine/forks","keys_url":"https://api.github.com/repos/sindresorhus/caprine/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sindresorhus/caprine/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sindresorhus/caprine/teams","hooks_url":"https://api.github.com/repos/sindresorhus/caprine/hooks","issue_events_url":"https://api.github.com/repos/sindresorhus/caprine/issues/events{/number}","events_url":"https://api.github.com/repos/sindresorhus/caprine/events","assignees_url":"https://api.github.com/repos/sindresorhus/caprine/assignees{/user}","branches_url":"https://api.github.com/repos/sindresorhus/caprine/branches{/branch}","tags_url":"https://api.github.com/repos/sindresorhus/caprine/tags","blobs_url":"https://api.github.com/repos/sindresorhus/caprine/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sindresorhus/caprine/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sindresorhus/caprine/git/refs{/sha}","trees_url":"https://api.github.com/repos/sindresorhus/caprine/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sindresorhus/caprine/statuses/{sha}","languages_url":"https://api.github.com/repos/sindresorhus/caprine/languages","stargazers_url":"https://api.github.com/repos/sindresorhus/caprine/stargazers","contributors_url":"https://api.github.com/repos/sindresorhus/caprine/contributors","subscribers_url":"https://api.github.com/repos/sindresorhus/caprine/subscribers","subscription_url":"https://api.github.com/repos/sindresorhus/caprine/subscription","commits_url":"https://api.github.com/repos/sindresorhus/caprine/commits{/sha}","git_commits_url":"https://api.github.com/repos/sindresorhus/caprine/git/commits{/sha}","comments_url":"https://api.github.com/repos/sindresorhus/caprine/comments{/number}","issue_comment_url":"https://api.github.com/repos/sindresorhus/caprine/issues/comments{/number}","contents_url":"https://api.github.com/repos/sindresorhus/caprine/contents/{+path}","compare_url":"https://api.github.com/repos/sindresorhus/caprine/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sindresorhus/caprine/merges","archive_url":"https://api.github.com/repos/sindresorhus/caprine/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sindresorhus/caprine/downloads","issues_url":"https://api.github.com/repos/sindresorhus/caprine/issues{/number}","pulls_url":"https://api.github.com/repos/sindresorhus/caprine/pulls{/number}","milestones_url":"https://api.github.com/repos/sindresorhus/caprine/milestones{/number}","notifications_url":"https://api.github.com/repos/sindresorhus/caprine/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sindresorhus/caprine/labels{/name}","releases_url":"https://api.github.com/repos/sindresorhus/caprine/releases{/id}","deployments_url":"https://api.github.com/repos/sindresorhus/caprine/deployments","created_at":"2015-09-16T08:20:12Z","updated_at":"2016-04-29T16:02:14Z","pushed_at":"2016-04-30T17:36:48Z","git_url":"git://github.com/sindresorhus/caprine.git","ssh_url":"git@github.com:sindresorhus/caprine.git","clone_url":"https://github.com/sindresorhus/caprine.git","svn_url":"https://github.com/sindresorhus/caprine","homepage":null,"size":2493,"stargazers_count":891,"watchers_count":891,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":58,"mirror_url":null,"open_issues_count":11,"forks":58,"open_issues":11,"watchers":891,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sindresorhus/caprine/pulls/87"},"html":{"href":"https://github.com/sindresorhus/caprine/pull/87"},"issue":{"href":"https://api.github.com/repos/sindresorhus/caprine/issues/87"},"comments":{"href":"https://api.github.com/repos/sindresorhus/caprine/issues/87/comments"},"review_comments":{"href":"https://api.github.com/repos/sindresorhus/caprine/pulls/87/comments"},"review_comment":{"href":"https://api.github.com/repos/sindresorhus/caprine/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sindresorhus/caprine/pulls/87/commits"},"statuses":{"href":"https://api.github.com/repos/sindresorhus/caprine/statuses/4c8e99379c89ef31d00fc13147759ceff15af2d1"}}}}