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.
2 parents bcfba25 + 3323abc commit 82dd08eCopy full SHA for 82dd08e
js/common/utilities.js
@@ -41,10 +41,9 @@ function makeUrl(url, extraParams = {}) {
41
return new URL(oldUrl) + buildHash(urlParams);
42
}
43
44
-// Check if the current url is a valid CircuitPython Web Workflow local device name
+// Check for any local MDNS name, not limited to Circuitpython default names
45
function isMdns() {
46
- // Check for cpy-XXXXXX.local (and optionally cpy-XXXXXX-###.local for mDNS name resolution)
47
- return location.hostname.search(/cpy-[0-9a-f]{6}(?:-[0-9]+)?.local/gi) == 0;
+ return location.hostname.endsWith(".local");
48
49
50
// Check if the current url is an IP address
0 commit comments