Skip to content

Commit

Permalink
private field for remove too
Browse files Browse the repository at this point in the history
  • Loading branch information
FoamyGuy committed Aug 28, 2024
1 parent f83bb2a commit dc21368
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/workflows/usb.js
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ class USBWorkflow extends Workflow {
// Workflow specific Functions
async _switchToDevice(device) {

device.removeEventListener("message", this.messageCallback);
device.removeEventListener("message", this._messageCallback);
this._messageCallback = this.onSerialReceive.bind(this);
device.addEventListener("message", this._messageCallback);

Expand Down

0 comments on commit dc21368

Please sign in to comment.