← Commit history

surface windowEtiquette in card logs

John Lauer ·25f77bd334 ·2mo ago ·parent e5594a9
1 file changed +1
web-control-demo.html+1
@@ -643,6 +643,7 @@ for (const w of mine) {       var args = (typeof cfg.showArgs === "function") ? cfg.showArgs() : (cfg.showArgs || {});
       clog(c, "Calling " + cfg.showCmd + " " + JSON.stringify(args) + (cfg.note ? "   (" + cfg.note + ")" : ""));
       return postVerb(cfg.showCmd, args).then(function (res) {
+        if (res.j && res.j.windowEtiquette === "background") clog(c, "  (opens in the BACKGROUND by design - the bridge's window etiquette; we render it below instead of stealing focus)");
         if (res.j && res.j._hint) clog(c, "  bridge hint: " + res.j._hint);
         var unknown = res.j && /unknown command/i.test(res.j.error || "");
         if (unknown && cfg.fallback) {