Skip to content

Commit 22837ed

Browse files
committed
fix: ios file path
1 parent 2da1e65 commit 22837ed

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Packages/Passport/Runtime/ThirdParty/Gree/Assets/Plugins/GreeBrowserClient.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,13 @@ public GreeBrowserClient()
3131
string filePath = Constants.SCHEME_FILE + Path.GetFullPath(MAC_EDITOR_RESOURCES_DIRECTORY) + Constants.PASSPORT_HTML_FILE_NAME;
3232
#elif UNITY_STANDALONE_OSX
3333
string filePath = Constants.SCHEME_FILE + Path.GetFullPath(Application.dataPath) + MAC_DATA_DIRECTORY + Constants.PASSPORT_DATA_DIRECTORY_NAME + Constants.PASSPORT_HTML_FILE_NAME;
34+
filePath = filePath.Replace(" ", "%20");
3435
#elif UNITY_IPHONE
3536
string filePath = Path.GetFullPath(Application.dataPath) + Constants.PASSPORT_DATA_DIRECTORY_NAME + Constants.PASSPORT_HTML_FILE_NAME;
3637
#else
3738
string filePath = Constants.SCHEME_FILE + Path.GetFullPath(Application.dataPath) + Constants.PASSPORT_DATA_DIRECTORY_NAME + Constants.PASSPORT_HTML_FILE_NAME;
3839
#endif
39-
string escapedPath = filePath.Replace(" ", "%20");
40-
webViewObject.LoadURL(escapedPath);
40+
webViewObject.LoadURL(filePath);
4141
}
4242

4343
private void InvokeOnPostMessageError(string id, string message)

0 commit comments

Comments
 (0)