[presentation-api] Pull Request: debug `EXAMPLE 6`

youkinjoh has just submitted a new pull request for https://github.com/w3c/presentation-api:

== debug `EXAMPLE 6` ==
`this` variable pointed `window` object in this context.

```js
var addConnection = function(connection) {
  this.onmessage = function (message) {
    if (message.data == "say hello")
      this.send("hello");
  };
};
```


See https://github.com/w3c/presentation-api/pull/513


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Tuesday, 27 December 2022 01:11:14 UTC