From fe47255480101087f3c555a65855807be10441eb Mon Sep 17 00:00:00 2001
From: Bjoern Esswein <692-bessw@users.noreply.gl.kwarc.info>
Date: Wed, 17 Jul 2024 18:10:58 +0200
Subject: [PATCH] Updated WebViewController to use Get_DataPath() instead of
 Application.dataPath

---
 Assets/Scripts/UI/InGame/WebViewController.cs                   | 2 +-
 .../scrollView.html                                             | 0
 .../scrollView.html.meta                                        | 0
 3 files changed, 1 insertion(+), 1 deletion(-)
 rename Assets/StreamingAssets/{StreamToDataPath => StreamToDataPath_withHandler}/scrollView.html (100%)
 rename Assets/StreamingAssets/{StreamToDataPath => StreamToDataPath_withHandler}/scrollView.html.meta (100%)

diff --git a/Assets/Scripts/UI/InGame/WebViewController.cs b/Assets/Scripts/UI/InGame/WebViewController.cs
index a80a93bd..e97f8488 100644
--- a/Assets/Scripts/UI/InGame/WebViewController.cs
+++ b/Assets/Scripts/UI/InGame/WebViewController.cs
@@ -30,7 +30,7 @@ private void Awake()
         Debug.LogWarning("awake Webview Controller");
         webViewComponent = GetComponent<WebViewComponent>();
         WebViewComponent.serializerSettings.Converters.Add(new FactObjectUIConverter());
-        webViewComponent.targetUrl = Path.Join(Application.dataPath, "scrollView.html");
+        webViewComponent.targetUrl = Path.Join(CommunicationEvents.Get_DataPath(), "scrollView.html");
 
         // TODO: handle webViewComponent.onDomDocumentUpdated
 
diff --git a/Assets/StreamingAssets/StreamToDataPath/scrollView.html b/Assets/StreamingAssets/StreamToDataPath_withHandler/scrollView.html
similarity index 100%
rename from Assets/StreamingAssets/StreamToDataPath/scrollView.html
rename to Assets/StreamingAssets/StreamToDataPath_withHandler/scrollView.html
diff --git a/Assets/StreamingAssets/StreamToDataPath/scrollView.html.meta b/Assets/StreamingAssets/StreamToDataPath_withHandler/scrollView.html.meta
similarity index 100%
rename from Assets/StreamingAssets/StreamToDataPath/scrollView.html.meta
rename to Assets/StreamingAssets/StreamToDataPath_withHandler/scrollView.html.meta
-- 
GitLab