Skip to content

Commit ad2f2c6

Browse files
committed
style: format getArduinoBoardHost function for improved readability
1 parent d084d5b commit ad2f2c6

File tree

1 file changed

+6
-6
lines changed
  • scratch-prg-extensions/extensions/src/arduino_basics

1 file changed

+6
-6
lines changed

scratch-prg-extensions/extensions/src/arduino_basics/index.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ const details: ExtensionMenuDisplayDetails = {
1515

1616
// Get Arduino board IP or hostname from URL parameter
1717
const getArduinoBoardHost = () => {
18-
const urlParams = new URLSearchParams(window.location.search);
19-
const boardHost = urlParams.get("host");
20-
if (boardHost) {
21-
return boardHost
22-
}
23-
return window.location.hostname;
18+
const urlParams = new URLSearchParams(window.location.search);
19+
const boardHost = urlParams.get("host");
20+
if (boardHost) {
21+
return boardHost;
22+
}
23+
return window.location.hostname;
2424
};
2525

2626
// TODO: make the block to support the brightness `0-7' of the leds

0 commit comments

Comments
 (0)