We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 81fcaf2 commit b958da0Copy full SHA for b958da0
src/Packages/Passport/Runtime/Scripts/Public/Passport.cs
@@ -190,8 +190,8 @@ private async UniTask Initialise(
190
throw new PassportException("When 'IMMUTABLE_CUSTOM_BROWSER' is defined in Scripting Define Symbols, " +
191
" 'windowsWebBrowserClient' must not be null.");
192
#else
193
- this.webBrowserClient = new UwbWebView();
194
- await ((UwbWebView)this.webBrowserClient).Init(engineStartupTimeoutMs);
+ webBrowserClient = gameObject.AddComponent<UwbWebView>();
+ await ((UwbWebView)webBrowserClient).Init(engineStartupTimeoutMs);
195
readySignalReceived = true;
196
#endif
197
}
0 commit comments