chrome.hid.receive(connectionid, myreceiver); chrome.hid.ondeviceremoved.addlistener(function () { isdeviceconnected = false; chrome.hid.disconnect(connectionid, function () { }); return; });
extensions::lasterror:134 unchecked runtime.lasterror while running hid.receive: transfer failed.
how stop chrome app stop receiving if device disconnected?
Comments
Post a Comment