← Commit history

self option named on load (machine identity, no Detect needed)

John Lauer ·c8b7e81036 ·2mo ago ·parent a66fb85
1 file changed +4−1
web-control-demo.html+4−1
@@ -176,7 +176,10 @@ for (const w of mine) {       return selfName;     }).catch(function () { return null; });   }-  loadSelfName();+  loadSelfName().then(function () {+    // Name the "self" option as soon as we know who self IS - no Detect needed.+    if (selfName && sel.options.length && !sel.options[0].value) sel.options[0].textContent = "this machine (" + selfName + ")";+  });   // The label for where a run lands. Verbs that pass no target run on SELF.   function machineLabel(target) {     if (target === undefined) target = chosenTarget();