← Commit history

Upload 1 file(s)

John Lauer ·1c9c86d9b6 ·2mo ago ·parent 7218d97
1 file changed +7
aps.py+7
@@ -305,6 +305,13 @@ def _open_os_window_extension_free(url: str, profile: str = None) -> dict:                 "error": (r or {}).get("_adCallError") or "nbrowser_open_os_window unavailable"}     launched = bool(r.get("ok") or r.get("hwnd") or r.get("sessionId")                     or "Launch fired" in str(r.get("_hint", "")))+    if launched:+        # hand it to the bridge's janitor so a consent window is never left as desktop litter+        try:+            import server as _s+            _s._track_signin_window(a.get("sessionId"), a.get("profile"), kind="aps")+        except Exception:+            pass     return {"launched": launched, "agentOwned": bool(owned),             "where": r.get("displayName") or r.get("profile") or profile,             "profile": r.get("profile") or profile,