{"action":"created","issue":{"url":"https://api.github.com/repos/webpack/webpack-dev-server/issues/792","repository_url":"https://api.github.com/repos/webpack/webpack-dev-server","labels_url":"https://api.github.com/repos/webpack/webpack-dev-server/issues/792/labels{/name}","comments_url":"https://api.github.com/repos/webpack/webpack-dev-server/issues/792/comments","events_url":"https://api.github.com/repos/webpack/webpack-dev-server/issues/792/events","html_url":"https://github.com/webpack/webpack-dev-server/issues/792","id":208315545,"number":792,"title":"self.postMessage is not a function under webpack-dev-server","user":{"login":"didi0613","id":10135897,"avatar_url":"https://avatars3.githubusercontent.com/u/10135897?v=4","gravatar_id":"","url":"https://api.github.com/users/didi0613","html_url":"https://github.com/didi0613","followers_url":"https://api.github.com/users/didi0613/followers","following_url":"https://api.github.com/users/didi0613/following{/other_user}","gists_url":"https://api.github.com/users/didi0613/gists{/gist_id}","starred_url":"https://api.github.com/users/didi0613/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/didi0613/subscriptions","organizations_url":"https://api.github.com/users/didi0613/orgs","repos_url":"https://api.github.com/users/didi0613/repos","events_url":"https://api.github.com/users/didi0613/events{/privacy}","received_events_url":"https://api.github.com/users/didi0613/received_events","type":"User","site_admin":false},"labels":[{"id":428244053,"url":"https://api.github.com/repos/webpack/webpack-dev-server/labels/P3:%20Important","name":"P3: Important","color":"f9d0c4","default":false},{"id":428244683,"url":"https://api.github.com/repos/webpack/webpack-dev-server/labels/S4:%20Broken","name":"S4: Broken","color":"0052cc","default":false},{"id":437042654,"url":"https://api.github.com/repos/webpack/webpack-dev-server/labels/X5:%20PR%20welcome","name":"X5: PR welcome","color":"0e8a16","default":false},{"id":14153533,"url":"https://api.github.com/repos/webpack/webpack-dev-server/labels/bug","name":"bug","color":"fbca04","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2017-02-17T02:32:18Z","updated_at":"2018-04-29T16:33:29Z","closed_at":"2017-08-30T04:51:48Z","author_association":"NONE","body":"<!-- Before creating an issue please make sure you are using the latest version of webpack-dev-server and webpack. -->\r\n\r\n**Do you want to request a *feature* or report a *bug*?**\r\n<!-- Please ask questions on StackOverflow or the webpack Gitter (https://gitter.im/webpack/webpack). Questions will be closed. -->\r\nBug\r\n\r\n**What is the current behavior?**\r\n<img width=\"520\" alt=\"screen shot 2017-02-16 at 6 27 48 pm\" src=\"https://cloud.githubusercontent.com/assets/10135897/23050226/d1477524-f475-11e6-9264-f494500d244d.png\">\r\n<img width=\"1031\" alt=\"screen shot 2017-02-16 at 6 27 56 pm\" src=\"https://cloud.githubusercontent.com/assets/10135897/23050229/d4b86e5c-f475-11e6-9183-2073a45b443c.png\">\r\nSelf is referring to a wrong object `serviceworkerglobalscope` instead of `window`.\r\nPostMessage is not defined under `serviceworkerglobalscope`\r\n\r\n**If the current behavior is a bug, please provide the steps to reproduce.**\r\n<!-- A great way to do this is to provide your configuration via a GitHub gist. -->\r\nClone https://github.com/didi0613/electrode/tree/webpack-2.0\r\ncheckout branch webpack-2.0\r\nnpm i && npm run bootstrap\r\ngoto samples/universal-react-node app\r\nnpm install\r\ngulp dev\r\n\r\n**What is the expected behavior?**\r\nThere should be no error and pwa should work\r\n\r\n**If this is a feature request, what is motivation or use case for changing the behavior?**\r\n\r\n**Please mention your webpack and Operating System version.**\r\nwebpack 2.2.0\r\nwepack-dev-server 2.2.0\r\nos: mac"},"comment":{"url":"https://api.github.com/repos/webpack/webpack-dev-server/issues/comments/385263712","html_url":"https://github.com/webpack/webpack-dev-server/issues/792#issuecomment-385263712","issue_url":"https://api.github.com/repos/webpack/webpack-dev-server/issues/792","id":385263712,"user":{"login":"ereztdev","id":34160588,"avatar_url":"https://avatars1.githubusercontent.com/u/34160588?v=4","gravatar_id":"","url":"https://api.github.com/users/ereztdev","html_url":"https://github.com/ereztdev","followers_url":"https://api.github.com/users/ereztdev/followers","following_url":"https://api.github.com/users/ereztdev/following{/other_user}","gists_url":"https://api.github.com/users/ereztdev/gists{/gist_id}","starred_url":"https://api.github.com/users/ereztdev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ereztdev/subscriptions","organizations_url":"https://api.github.com/users/ereztdev/orgs","repos_url":"https://api.github.com/users/ereztdev/repos","events_url":"https://api.github.com/users/ereztdev/events{/privacy}","received_events_url":"https://api.github.com/users/ereztdev/received_events","type":"User","site_admin":false},"created_at":"2018-04-29T16:33:29Z","updated_at":"2018-04-29T16:33:29Z","author_association":"NONE","body":"Yup, same here.\r\nReturning data from a computed function:\r\n\r\n```\r\ncomputed:{\r\n\r\n            boom(){\r\n\r\n                setTimeout(funky, 4000);\r\n                function funky() {\r\n                    self = this;\r\n                    return self.$store.getters.cityNames\r\n                }\r\n            }\r\n        }\r\n```"}}
{"actor":{"display_login":"ereztdev"}}