From 1e4ddeb4eeba97cb76df567dbf36a0f72bf7b20d Mon Sep 17 00:00:00 2001 From: dido18 Date: Mon, 3 Nov 2025 18:47:39 +0100 Subject: [PATCH] fix: update wsServerURL to use dynamic hostname instead of hardcoded IP --- .../packages/scratch-vm/src/extensions/arduino_basics/index.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/scratch-arduino-extensions/packages/scratch-vm/src/extensions/arduino_basics/index.js b/scratch-arduino-extensions/packages/scratch-vm/src/extensions/arduino_basics/index.js index 5993281..d6431a5 100644 --- a/scratch-arduino-extensions/packages/scratch-vm/src/extensions/arduino_basics/index.js +++ b/scratch-arduino-extensions/packages/scratch-vm/src/extensions/arduino_basics/index.js @@ -19,9 +19,8 @@ const iconURI = ""; // eslint-disable-next-line max-len const menuIconURI = ""; -// const wsServerURL = `${window.location.protocol}//${window.location.hostname}:7000`; +const wsServerURL = `${window.location.protocol}//${window.location.hostname}:7000`; -const wsServerURL = `ws://192.168.1.39:7000`; class ArduinoBasics { constructor(runtime) { this.runtime = runtime;