From 0fa617a09eedf6bdb25eda55fac1d3344859fd93 Mon Sep 17 00:00:00 2001
From: yyl <yyl>
Date: 星期二, 31 三月 2026 19:46:31 +0800
Subject: [PATCH] webgl

---
 Main/SDK/SDKUtils.cs |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/Main/SDK/SDKUtils.cs b/Main/SDK/SDKUtils.cs
index 218b2ec..b43896b 100644
--- a/Main/SDK/SDKUtils.cs
+++ b/Main/SDK/SDKUtils.cs
@@ -426,7 +426,7 @@
         }
 #elif UNITY_IOS
         AotSdkUtility.IOSUniyMessageHandle(json.ToJson());
-#elif UNITY_STANDALONE
+#elif UNITY_STANDALONE || UNITY_WEBGL
         InitFinished=true;
 #endif
         
@@ -640,7 +640,11 @@
                 // else
                 {
                     //榛樿閮芥槸閫�鍑烘父鎴�
+#if UNITY_WEBGL
+                    Application.OpenURL("about:blank");
+#else
                     Application.Quit();
+#endif
                 }
                 break;
             case CodeA2U.GetAdAward:

--
Gitblit v1.8.0