At wevbiew.rs:163-168, execute_script runs during content_loading but is async. The WebUI's inline <script> tags can execute before the injection lands, leaving window.stremio_server_url undefined when first needed. Same issue for stremio_server_ipc_key. Need a synchronization mechanism or use add_script_to_execute_on_document_created.
At
wevbiew.rs:163-168,execute_scriptruns duringcontent_loadingbut is async. The WebUI's inline<script>tags can execute before the injection lands, leavingwindow.stremio_server_urlundefined when first needed. Same issue forstremio_server_ipc_key. Need a synchronization mechanism or useadd_script_to_execute_on_document_created.