MCPcopy
hub / github.com/urllib3/urllib3 / is_in_browser_main_thread

Function is_in_browser_main_thread

src/urllib3/contrib/emscripten/fetch.py:410–411  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

408
409# check if we are in a worker or not
410def is_in_browser_main_thread() -> bool:
411 return hasattr(js, "window") and hasattr(js, "self") and js.self == js.window
412
413
414def is_cross_origin_isolated() -> bool:

Callers 3

fetch.pyFile · 0.85
_show_streaming_warningFunction · 0.85
send_requestFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected