Skip to content

Commit c684b19

Browse files
fix: inline JavaScript in index.html to support GameBridgeServer
GameBridgeServer only serves the index.html file and cannot serve external JS files. Parcel was generating a separate index.js file which caused 404s. Changes: - Updated transform-bigint.js to inline external JavaScript - JavaScript is now fully embedded in index.html - Replaces <script src=/index.js> with inline <script> - Includes JSBI and whatwg-fetch polyfills inline - Fixed OperationCanceledException usage (was TimeoutException) This fixes the "ready signal" never arriving from JavaScript.
1 parent 6a59c4b commit c684b19

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

src/Packages/Passport/Runtime/Resources/index.html

Lines changed: 6 additions & 1 deletion
Large diffs are not rendered by default.

src/Packages/Passport/Runtime/Scripts/Private/Uwb/UwbWebView.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ private async UniTask WaitForClientConnected(WebBrowserClient webBrowserClient)
146146
var errorMsg = $"[UwbWebView] Timeout after {timeoutSeconds} seconds waiting for browser OnLoadFinish event. " +
147147
$"The browser failed to load the initial URL. This may indicate a CEF initialization failure.";
148148
Debug.LogError(errorMsg);
149-
throw new TimeoutException(errorMsg);
149+
throw new OperationCanceledException(errorMsg);
150150
}
151151

152152
Debug.Log($"[UwbWebView] OnLoadFinish event received successfully");

0 commit comments

Comments
 (0)