From ce90c45b3c05a94df990e837d92cae4e16aa0cf3 Mon Sep 17 00:00:00 2001 From: Florian Scholz Date: Wed, 2 Feb 2022 20:37:28 +0100 Subject: [PATCH] e.port -> e.target (#159) `SerialConnectionEvent` doesn't exist anymore, so there should be no `e.port`. --- index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index 05f94cd..55f5047 100644 --- a/index.html +++ b/index.html @@ -256,11 +256,11 @@

getPorts() method

}); 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. });