Skip to content

Commit 6c0c312

Browse files
authored
Merge pull request #164 from immutable/fix/file-path-ios-space
[DX-2641] fix: ios file path
2 parents 2da1e65 + 22837ed commit 6c0c312

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)