Created
October 21, 2018 10:13
-
-
Save aybarburak/f439e4c787821dfcf4b1d82c2c18f161 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
navigator.usb.addEventListener('connect', event => { | |
// event.device will bring the connected device | |
}); | |
navigator.usb.addEventListener('disconnect', event => { | |
// event.device will bring the disconnected device | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment