File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
src/Packages/Passport/Runtime/Scripts/Public Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -630,11 +630,13 @@ private void UpdateWebViewResolution()
630630 {
631631 if ( webView != null && isInitialized && webViewWidth > 0 && webViewHeight > 0 )
632632 {
633+ #if ! IMMUTABLE_CUSTOM_BROWSER && ( UNITY_STANDALONE_WIN || ( UNITY_EDITOR && UNITY_EDITOR_WIN ) )
633634 // For Windows UWB, update the internal resolution
634635 if ( webView is WindowsPassportWebView windowsWebView )
635636 {
636637 windowsWebView . UpdateUWBResolution ( webViewWidth , webViewHeight ) ;
637638 }
639+ #endif
638640 // For other platforms (Vuplex), the RectTransform size is sufficient
639641 // as they don't have separate internal resolution properties
640642 }
@@ -645,11 +647,13 @@ private void UpdateWebViewResolution()
645647 /// </summary>
646648 private void Update ( )
647649 {
650+ #if ! IMMUTABLE_CUSTOM_BROWSER && ( UNITY_STANDALONE_WIN || ( UNITY_EDITOR && UNITY_EDITOR_WIN ) )
648651 // Check for pending resolution updates on Windows WebView
649652 if ( webView is WindowsPassportWebView windowsWebView )
650653 {
651654 windowsWebView . UpdatePendingResolution ( ) ;
652655 }
656+ #endif
653657 }
654658
655659 private void SetupLoginButton ( )
You can’t perform that action at this time.
0 commit comments