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 e52e8ce commit 72385f9Copy full SHA for 72385f9
scratch-arduino-extensions/packages/scratch-vm/src/extensions/arduino_object_detection/index.js
@@ -23,14 +23,8 @@ const iconURI = "";
23
const menuIconURI = "";
24
25
// Determine the appropriate protocol and URL for socket.io connection
26
-const getSocketURL = () => {
27
- const protocol = window.location.protocol === 'https:' ? 'https:' : 'http:';
28
- const hostname = window.location.hostname || '192.168.1.39';
29
- const port = 7000;
30
- return `${protocol}//${hostname}:${port}`;
31
-};
+const wsServerURL = `${window.location.protocol}//${window.location.hostname}:7000`;
32
33
-const wsServerURL = getSocketURL();
34
35
/**
36
* RGB color constants for confidence visualization
0 commit comments