{"action":"created","issue":{"url":"https://api.github.com/repos/mischnic/parcel-plugin-sw-cache/issues/4","repository_url":"https://api.github.com/repos/mischnic/parcel-plugin-sw-cache","labels_url":"https://api.github.com/repos/mischnic/parcel-plugin-sw-cache/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/mischnic/parcel-plugin-sw-cache/issues/4/comments","events_url":"https://api.github.com/repos/mischnic/parcel-plugin-sw-cache/issues/4/events","html_url":"https://github.com/mischnic/parcel-plugin-sw-cache/issues/4","id":294198149,"number":4,"title":"Is workbox BroadcastCacheUpdate supported?","user":{"login":"goofblob","id":34941231,"avatar_url":"https://avatars1.githubusercontent.com/u/34941231?v=4","gravatar_id":"","url":"https://api.github.com/users/goofblob","html_url":"https://github.com/goofblob","followers_url":"https://api.github.com/users/goofblob/followers","following_url":"https://api.github.com/users/goofblob/following{/other_user}","gists_url":"https://api.github.com/users/goofblob/gists{/gist_id}","starred_url":"https://api.github.com/users/goofblob/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/goofblob/subscriptions","organizations_url":"https://api.github.com/users/goofblob/orgs","repos_url":"https://api.github.com/users/goofblob/repos","events_url":"https://api.github.com/users/goofblob/events{/privacy}","received_events_url":"https://api.github.com/users/goofblob/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":12,"created_at":"2018-02-04T13:44:19Z","updated_at":"2018-03-07T17:40:59Z","closed_at":null,"author_association":"NONE","body":"If so, how is it implemented in package.json, and how would a page listen to the notification?"},"comment":{"url":"https://api.github.com/repos/mischnic/parcel-plugin-sw-cache/issues/comments/371220402","html_url":"https://github.com/mischnic/parcel-plugin-sw-cache/issues/4#issuecomment-371220402","issue_url":"https://api.github.com/repos/mischnic/parcel-plugin-sw-cache/issues/4","id":371220402,"user":{"login":"goofblob","id":34941231,"avatar_url":"https://avatars1.githubusercontent.com/u/34941231?v=4","gravatar_id":"","url":"https://api.github.com/users/goofblob","html_url":"https://github.com/goofblob","followers_url":"https://api.github.com/users/goofblob/followers","following_url":"https://api.github.com/users/goofblob/following{/other_user}","gists_url":"https://api.github.com/users/goofblob/gists{/gist_id}","starred_url":"https://api.github.com/users/goofblob/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/goofblob/subscriptions","organizations_url":"https://api.github.com/users/goofblob/orgs","repos_url":"https://api.github.com/users/goofblob/repos","events_url":"https://api.github.com/users/goofblob/events{/privacy}","received_events_url":"https://api.github.com/users/goofblob/received_events","type":"User","site_admin":false},"created_at":"2018-03-07T17:40:59Z","updated_at":"2018-03-07T17:40:59Z","author_association":"NONE","body":"Hmm... \r\n\r\nIn order to test it, we need to listen to the broadcastUpdate event:\r\n\r\n```\r\nconst updatesChannel = new BroadcastChannel('api-updates');\r\nupdatesChannel.addEventListener('message', (event) => {\r\n        console.log(event.data.payload);\r\n});\r\n```\r\n\r\nProblem is that if I put this in `index.html` the Parcel bundler complains that it doesn't know what BroadcastChannel is. If I put it lower down in one of my components, it bundles it successfully. But then it does not seem to trigger. "}}
{"actor":{"display_login":"goofblob"}}