Skip to content

Commit

Permalink
format and lint
Browse files Browse the repository at this point in the history
  • Loading branch information
terryzfeng committed Jan 25, 2025
1 parent ce1604d commit eae2b59
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/components/examples/examples.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,15 +110,15 @@ export default class Examples {
Examples.newExample(
"Hello Sine GUI",
() => {
loadChuckFileFromURL("examples/helloSineGUI.ck")
loadChuckFileFromURL("examples/helloSineGUI.ck");
InputPanelHeader.setNotificationPing(0, true);
},
guiNested
);
Examples.newExample(
"FM Synthesis GUI",
() => {
loadChuckFileFromURL("examples/fmGUI.ck")
loadChuckFileFromURL("examples/fmGUI.ck");
InputPanelHeader.setNotificationPing(0, true);
},
guiNested
Expand All @@ -141,7 +141,7 @@ export default class Examples {
Examples.newExample(
"Keyboard Organ HID",
() => {
loadChuckFileFromURL("examples/keyboardHID.ck")
loadChuckFileFromURL("examples/keyboardHID.ck");
InputPanelHeader.setNotificationPing(1, true);
},
hidNested
Expand Down
6 changes: 4 additions & 2 deletions src/components/inputPanel/inputPanelHeader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export default class InputPanelHeader {
InputPanelHeader.inputContainers.push(
document.querySelector<HTMLDivElement>("#SensorContainer")!
);
InputPanelHeader.inputPings.push(
InputPanelHeader.inputPings.push(
document.querySelector<HTMLSpanElement>("#SensorPing")!
);

Expand Down Expand Up @@ -91,7 +91,9 @@ export default class InputPanelHeader {
*/
static setNotificationPing(tabIndex: number, on: boolean) {
for (let i = 0; i < InputPanelHeader.inputButtons.length; i++) {
InputPanelHeader.inputToggles[i].setNotificationPing(i == tabIndex && on);
InputPanelHeader.inputToggles[i].setNotificationPing(
i == tabIndex && on
);
}
}
}

0 comments on commit eae2b59

Please sign in to comment.