{"action":"created","comment":{"url":"https://api.github.com/repos/node-inspector/node-inspector/pulls/comments/31020785","id":31020785,"diff_hunk":"@@ -134,3 +150,47 @@ function getAllUiSourceCodes() {\n     return p.name();\n   }\n }\n+\n+var notifications = [];\n+\n+function processDebuggerPaused(event) {\n+  var reason = event.data.reason;\n+  var lastFrame = event.data.callFrames[0];\n+  var title, message;\n+  switch (reason) {\n+    case 'exception':\n+      title = 'Exception caught';\n+      if (lastFrame) {\n+        message = 'Exception caught in module ' + (lastFrame._script.sourceURL||('(' + lastFrame._location.scriptId + ')')) +\n+          ' at line ' + lastFrame._location.lineNumber + ' column ' + lastFrame._location.columnNumber +\n+          '.\\n\\nClick here to inspect.';\n+      }\n+      break;\n+    case 'other':\n+    default:\n+      title = 'Debugger paused';\n+      if (lastFrame) {\n+        message = 'Breakpoint caught in module ' + (lastFrame._script.sourceURL||('(' + lastFrame._location.scriptId + ')')) +\n+          ' at line ' + lastFrame._location.lineNumber + ' column ' + lastFrame._location.columnNumber +\n+          '.\\n\\nClick here to inspect.';\n+      }\n+      break;  \n+  }\n+  var notification = new Notification(title, {\n+    body: message||'Click here to inspect.',\n+    icon: '/favicon.ico'\n+  });\n+  notifications.push(notification);\n+  notification.addEventListener('click', function(event) {\n+    this.close();\n+    window.focus();\n+  });\n+  ['click','focus'].forEach(function(attachTo) {\n+    window.addEventListener(attachTo, function(event) {","path":"front-end-node/NodeInspectorOverrides.js","position":77,"original_position":70,"commit_id":"afd3bce703958c6803a40fc4a9cf976a1a284756","original_commit_id":"8797793385fee969604b256719905340862519dd","user":{"login":"3y3","id":3931155,"avatar_url":"https://avatars.githubusercontent.com/u/3931155?v=3","gravatar_id":"","url":"https://api.github.com/users/3y3","html_url":"https://github.com/3y3","followers_url":"https://api.github.com/users/3y3/followers","following_url":"https://api.github.com/users/3y3/following{/other_user}","gists_url":"https://api.github.com/users/3y3/gists{/gist_id}","starred_url":"https://api.github.com/users/3y3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/3y3/subscriptions","organizations_url":"https://api.github.com/users/3y3/orgs","repos_url":"https://api.github.com/users/3y3/repos","events_url":"https://api.github.com/users/3y3/events{/privacy}","received_events_url":"https://api.github.com/users/3y3/received_events","type":"User","site_admin":false},"body":"Will be nice to expose this as named function. Something like \r\n```js\r\nfunction closeAllNotifications() {...}\r\nwindow.addEventListener('click', closeAllNotifications);\r\nwindow.addEventListener('focus', closeAllNotifications);\r\n```","created_at":"2015-05-26T10:24:56Z","updated_at":"2015-05-26T10:24:56Z","html_url":"https://github.com/node-inspector/node-inspector/pull/654#discussion_r31020785","pull_request_url":"https://api.github.com/repos/node-inspector/node-inspector/pulls/654","_links":{"self":{"href":"https://api.github.com/repos/node-inspector/node-inspector/pulls/comments/31020785"},"html":{"href":"https://github.com/node-inspector/node-inspector/pull/654#discussion_r31020785"},"pull_request":{"href":"https://api.github.com/repos/node-inspector/node-inspector/pulls/654"}}},"pull_request":{"url":"https://api.github.com/repos/node-inspector/node-inspector/pulls/654","id":36186521,"html_url":"https://github.com/node-inspector/node-inspector/pull/654","diff_url":"https://github.com/node-inspector/node-inspector/pull/654.diff","patch_url":"https://github.com/node-inspector/node-inspector/pull/654.patch","issue_url":"https://api.github.com/repos/node-inspector/node-inspector/issues/654","number":654,"state":"open","locked":false,"title":"Added support for Web Notifications.","user":{"login":"marcominetti","id":4608324,"avatar_url":"https://avatars.githubusercontent.com/u/4608324?v=3","gravatar_id":"","url":"https://api.github.com/users/marcominetti","html_url":"https://github.com/marcominetti","followers_url":"https://api.github.com/users/marcominetti/followers","following_url":"https://api.github.com/users/marcominetti/following{/other_user}","gists_url":"https://api.github.com/users/marcominetti/gists{/gist_id}","starred_url":"https://api.github.com/users/marcominetti/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marcominetti/subscriptions","organizations_url":"https://api.github.com/users/marcominetti/orgs","repos_url":"https://api.github.com/users/marcominetti/repos","events_url":"https://api.github.com/users/marcominetti/events{/privacy}","received_events_url":"https://api.github.com/users/marcominetti/received_events","type":"User","site_admin":false},"body":"Implements #566.","created_at":"2015-05-26T10:01:15Z","updated_at":"2015-05-26T10:24:56Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7ae22a60176dade31b7347f517e046931276369f","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/node-inspector/node-inspector/pulls/654/commits","review_comments_url":"https://api.github.com/repos/node-inspector/node-inspector/pulls/654/comments","review_comment_url":"https://api.github.com/repos/node-inspector/node-inspector/pulls/comments{/number}","comments_url":"https://api.github.com/repos/node-inspector/node-inspector/issues/654/comments","statuses_url":"https://api.github.com/repos/node-inspector/node-inspector/statuses/afd3bce703958c6803a40fc4a9cf976a1a284756","head":{"label":"marcominetti:fix/566","ref":"fix/566","sha":"afd3bce703958c6803a40fc4a9cf976a1a284756","user":{"login":"marcominetti","id":4608324,"avatar_url":"https://avatars.githubusercontent.com/u/4608324?v=3","gravatar_id":"","url":"https://api.github.com/users/marcominetti","html_url":"https://github.com/marcominetti","followers_url":"https://api.github.com/users/marcominetti/followers","following_url":"https://api.github.com/users/marcominetti/following{/other_user}","gists_url":"https://api.github.com/users/marcominetti/gists{/gist_id}","starred_url":"https://api.github.com/users/marcominetti/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marcominetti/subscriptions","organizations_url":"https://api.github.com/users/marcominetti/orgs","repos_url":"https://api.github.com/users/marcominetti/repos","events_url":"https://api.github.com/users/marcominetti/events{/privacy}","received_events_url":"https://api.github.com/users/marcominetti/received_events","type":"User","site_admin":false},"repo":{"id":28510108,"name":"node-inspector","full_name":"marcominetti/node-inspector","owner":{"login":"marcominetti","id":4608324,"avatar_url":"https://avatars.githubusercontent.com/u/4608324?v=3","gravatar_id":"","url":"https://api.github.com/users/marcominetti","html_url":"https://github.com/marcominetti","followers_url":"https://api.github.com/users/marcominetti/followers","following_url":"https://api.github.com/users/marcominetti/following{/other_user}","gists_url":"https://api.github.com/users/marcominetti/gists{/gist_id}","starred_url":"https://api.github.com/users/marcominetti/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marcominetti/subscriptions","organizations_url":"https://api.github.com/users/marcominetti/orgs","repos_url":"https://api.github.com/users/marcominetti/repos","events_url":"https://api.github.com/users/marcominetti/events{/privacy}","received_events_url":"https://api.github.com/users/marcominetti/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/marcominetti/node-inspector","description":"Node.js debugger based on Blink Developer Tools","fork":true,"url":"https://api.github.com/repos/marcominetti/node-inspector","forks_url":"https://api.github.com/repos/marcominetti/node-inspector/forks","keys_url":"https://api.github.com/repos/marcominetti/node-inspector/keys{/key_id}","collaborators_url":"https://api.github.com/repos/marcominetti/node-inspector/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/marcominetti/node-inspector/teams","hooks_url":"https://api.github.com/repos/marcominetti/node-inspector/hooks","issue_events_url":"https://api.github.com/repos/marcominetti/node-inspector/issues/events{/number}","events_url":"https://api.github.com/repos/marcominetti/node-inspector/events","assignees_url":"https://api.github.com/repos/marcominetti/node-inspector/assignees{/user}","branches_url":"https://api.github.com/repos/marcominetti/node-inspector/branches{/branch}","tags_url":"https://api.github.com/repos/marcominetti/node-inspector/tags","blobs_url":"https://api.github.com/repos/marcominetti/node-inspector/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/marcominetti/node-inspector/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/marcominetti/node-inspector/git/refs{/sha}","trees_url":"https://api.github.com/repos/marcominetti/node-inspector/git/trees{/sha}","statuses_url":"https://api.github.com/repos/marcominetti/node-inspector/statuses/{sha}","languages_url":"https://api.github.com/repos/marcominetti/node-inspector/languages","stargazers_url":"https://api.github.com/repos/marcominetti/node-inspector/stargazers","contributors_url":"https://api.github.com/repos/marcominetti/node-inspector/contributors","subscribers_url":"https://api.github.com/repos/marcominetti/node-inspector/subscribers","subscription_url":"https://api.github.com/repos/marcominetti/node-inspector/subscription","commits_url":"https://api.github.com/repos/marcominetti/node-inspector/commits{/sha}","git_commits_url":"https://api.github.com/repos/marcominetti/node-inspector/git/commits{/sha}","comments_url":"https://api.github.com/repos/marcominetti/node-inspector/comments{/number}","issue_comment_url":"https://api.github.com/repos/marcominetti/node-inspector/issues/comments{/number}","contents_url":"https://api.github.com/repos/marcominetti/node-inspector/contents/{+path}","compare_url":"https://api.github.com/repos/marcominetti/node-inspector/compare/{base}...{head}","merges_url":"https://api.github.com/repos/marcominetti/node-inspector/merges","archive_url":"https://api.github.com/repos/marcominetti/node-inspector/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/marcominetti/node-inspector/downloads","issues_url":"https://api.github.com/repos/marcominetti/node-inspector/issues{/number}","pulls_url":"https://api.github.com/repos/marcominetti/node-inspector/pulls{/number}","milestones_url":"https://api.github.com/repos/marcominetti/node-inspector/milestones{/number}","notifications_url":"https://api.github.com/repos/marcominetti/node-inspector/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/marcominetti/node-inspector/labels{/name}","releases_url":"https://api.github.com/repos/marcominetti/node-inspector/releases{/id}","created_at":"2014-12-26T12:18:18Z","updated_at":"2015-03-22T18:41:20Z","pushed_at":"2015-05-26T10:24:56Z","git_url":"git://github.com/marcominetti/node-inspector.git","ssh_url":"git@github.com:marcominetti/node-inspector.git","clone_url":"https://github.com/marcominetti/node-inspector.git","svn_url":"https://github.com/marcominetti/node-inspector","homepage":"","size":7052,"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":"bundle/ljve"}},"base":{"label":"node-inspector:master","ref":"master","sha":"d747efec662d6f34b3e6b56c9ba0e9cbaf2f292f","user":{"login":"node-inspector","id":4449877,"avatar_url":"https://avatars.githubusercontent.com/u/4449877?v=3","gravatar_id":"","url":"https://api.github.com/users/node-inspector","html_url":"https://github.com/node-inspector","followers_url":"https://api.github.com/users/node-inspector/followers","following_url":"https://api.github.com/users/node-inspector/following{/other_user}","gists_url":"https://api.github.com/users/node-inspector/gists{/gist_id}","starred_url":"https://api.github.com/users/node-inspector/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/node-inspector/subscriptions","organizations_url":"https://api.github.com/users/node-inspector/orgs","repos_url":"https://api.github.com/users/node-inspector/repos","events_url":"https://api.github.com/users/node-inspector/events{/privacy}","received_events_url":"https://api.github.com/users/node-inspector/received_events","type":"Organization","site_admin":false},"repo":{"id":781028,"name":"node-inspector","full_name":"node-inspector/node-inspector","owner":{"login":"node-inspector","id":4449877,"avatar_url":"https://avatars.githubusercontent.com/u/4449877?v=3","gravatar_id":"","url":"https://api.github.com/users/node-inspector","html_url":"https://github.com/node-inspector","followers_url":"https://api.github.com/users/node-inspector/followers","following_url":"https://api.github.com/users/node-inspector/following{/other_user}","gists_url":"https://api.github.com/users/node-inspector/gists{/gist_id}","starred_url":"https://api.github.com/users/node-inspector/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/node-inspector/subscriptions","organizations_url":"https://api.github.com/users/node-inspector/orgs","repos_url":"https://api.github.com/users/node-inspector/repos","events_url":"https://api.github.com/users/node-inspector/events{/privacy}","received_events_url":"https://api.github.com/users/node-inspector/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/node-inspector/node-inspector","description":"Node.js debugger based on Blink Developer Tools","fork":false,"url":"https://api.github.com/repos/node-inspector/node-inspector","forks_url":"https://api.github.com/repos/node-inspector/node-inspector/forks","keys_url":"https://api.github.com/repos/node-inspector/node-inspector/keys{/key_id}","collaborators_url":"https://api.github.com/repos/node-inspector/node-inspector/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/node-inspector/node-inspector/teams","hooks_url":"https://api.github.com/repos/node-inspector/node-inspector/hooks","issue_events_url":"https://api.github.com/repos/node-inspector/node-inspector/issues/events{/number}","events_url":"https://api.github.com/repos/node-inspector/node-inspector/events","assignees_url":"https://api.github.com/repos/node-inspector/node-inspector/assignees{/user}","branches_url":"https://api.github.com/repos/node-inspector/node-inspector/branches{/branch}","tags_url":"https://api.github.com/repos/node-inspector/node-inspector/tags","blobs_url":"https://api.github.com/repos/node-inspector/node-inspector/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/node-inspector/node-inspector/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/node-inspector/node-inspector/git/refs{/sha}","trees_url":"https://api.github.com/repos/node-inspector/node-inspector/git/trees{/sha}","statuses_url":"https://api.github.com/repos/node-inspector/node-inspector/statuses/{sha}","languages_url":"https://api.github.com/repos/node-inspector/node-inspector/languages","stargazers_url":"https://api.github.com/repos/node-inspector/node-inspector/stargazers","contributors_url":"https://api.github.com/repos/node-inspector/node-inspector/contributors","subscribers_url":"https://api.github.com/repos/node-inspector/node-inspector/subscribers","subscription_url":"https://api.github.com/repos/node-inspector/node-inspector/subscription","commits_url":"https://api.github.com/repos/node-inspector/node-inspector/commits{/sha}","git_commits_url":"https://api.github.com/repos/node-inspector/node-inspector/git/commits{/sha}","comments_url":"https://api.github.com/repos/node-inspector/node-inspector/comments{/number}","issue_comment_url":"https://api.github.com/repos/node-inspector/node-inspector/issues/comments{/number}","contents_url":"https://api.github.com/repos/node-inspector/node-inspector/contents/{+path}","compare_url":"https://api.github.com/repos/node-inspector/node-inspector/compare/{base}...{head}","merges_url":"https://api.github.com/repos/node-inspector/node-inspector/merges","archive_url":"https://api.github.com/repos/node-inspector/node-inspector/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/node-inspector/node-inspector/downloads","issues_url":"https://api.github.com/repos/node-inspector/node-inspector/issues{/number}","pulls_url":"https://api.github.com/repos/node-inspector/node-inspector/pulls{/number}","milestones_url":"https://api.github.com/repos/node-inspector/node-inspector/milestones{/number}","notifications_url":"https://api.github.com/repos/node-inspector/node-inspector/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/node-inspector/node-inspector/labels{/name}","releases_url":"https://api.github.com/repos/node-inspector/node-inspector/releases{/id}","created_at":"2010-07-17T23:20:19Z","updated_at":"2015-05-26T09:46:48Z","pushed_at":"2015-05-26T10:24:56Z","git_url":"git://github.com/node-inspector/node-inspector.git","ssh_url":"git@github.com:node-inspector/node-inspector.git","clone_url":"https://github.com/node-inspector/node-inspector.git","svn_url":"https://github.com/node-inspector/node-inspector","homepage":"","size":11878,"stargazers_count":6911,"watchers_count":6911,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":440,"mirror_url":null,"open_issues_count":68,"forks":440,"open_issues":68,"watchers":6911,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/node-inspector/node-inspector/pulls/654"},"html":{"href":"https://github.com/node-inspector/node-inspector/pull/654"},"issue":{"href":"https://api.github.com/repos/node-inspector/node-inspector/issues/654"},"comments":{"href":"https://api.github.com/repos/node-inspector/node-inspector/issues/654/comments"},"review_comments":{"href":"https://api.github.com/repos/node-inspector/node-inspector/pulls/654/comments"},"review_comment":{"href":"https://api.github.com/repos/node-inspector/node-inspector/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/node-inspector/node-inspector/pulls/654/commits"},"statuses":{"href":"https://api.github.com/repos/node-inspector/node-inspector/statuses/afd3bce703958c6803a40fc4a9cf976a1a284756"}}}}