Skip to content

Commit 11b8c2d

Browse files
authored
fix: update wsServerURL to use dynamic hostname instead of hardcoded IP (#29)
1 parent 9afdf89 commit 11b8c2d

File tree

1 file changed

+1
-2
lines changed
  • scratch-arduino-extensions/packages/scratch-vm/src/extensions/arduino_basics

1 file changed

+1
-2
lines changed

scratch-arduino-extensions/packages/scratch-vm/src/extensions/arduino_basics/index.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,8 @@ const iconURI = "";
1919
// eslint-disable-next-line max-len
2020
const menuIconURI = "";
2121

22-
// const wsServerURL = `${window.location.protocol}//${window.location.hostname}:7000`;
22+
const wsServerURL = `${window.location.protocol}//${window.location.hostname}:7000`;
2323

24-
const wsServerURL = `ws://192.168.1.39:7000`;
2524
class ArduinoBasics {
2625
constructor(runtime) {
2726
this.runtime = runtime;

0 commit comments

Comments
 (0)