We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d084d5b commit ad2f2c6Copy full SHA for ad2f2c6
scratch-prg-extensions/extensions/src/arduino_basics/index.ts
@@ -15,12 +15,12 @@ const details: ExtensionMenuDisplayDetails = {
15
16
// Get Arduino board IP or hostname from URL parameter
17
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;
+ const urlParams = new URLSearchParams(window.location.search);
+ const boardHost = urlParams.get("host");
+ if (boardHost) {
+ return boardHost;
+ }
+ return window.location.hostname;
24
};
25
26
// TODO: make the block to support the brightness `0-7' of the leds
0 commit comments