Skip to content

Commit

Permalink
Fix linter introduced bug
Browse files Browse the repository at this point in the history
  • Loading branch information
dtcooper committed Aug 9, 2024
1 parent cf9bd43 commit 2944bfc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/src/stores/midi.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ let lastLEDValue = LED_OFF
let enabled = false

// Filter midi loopback (through port) on Linux
const portUsable = (port) => !IS_LINUX || !port.name.toLowerCase().includes("midi through port")
const portUsable = (port) => !(IS_LINUX && port.name.toLowerCase().includes("midi through port"))
const filterPorts = (ports) => ports.filter((p) => portUsable(p))

window.addEventListener("beforeunload", () => {
Expand Down

0 comments on commit 2944bfc

Please sign in to comment.