Skip to content

Commit

Permalink
e.port -> e.target (#159)
Browse files Browse the repository at this point in the history
`SerialConnectionEvent` doesn't exist anymore, so there should be no `e.port`.
  • Loading branch information
Elchi3 authored Feb 2, 2022
1 parent cb642a1 commit ce90c45
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -256,11 +256,11 @@ <h3><dfn>getPorts()</dfn> method</h3>
});

navigator.serial.addEventListener('connect', e => {
// Add |e.port| to the UI or automatically connect.
// Add |e.target| to the UI or automatically connect.
});

navigator.serial.addEventListener('disconnect', e => {
// Remove |e.port| from the UI. If the device was open the
// Remove |e.target| from the UI. If the device was open the
// disconnection can also be observed as a stream error.
});
</pre>
Expand Down

0 comments on commit ce90c45

Please sign in to comment.