Skip to content

Commit b713b31

Browse files
committed
fix: gree browser does not load index file if path has spaces
1 parent 0ff445c commit b713b31

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ public GreeBrowserClient()
3636
#else
3737
string filePath = Constants.SCHEME_FILE + Path.GetFullPath(Application.dataPath) + Constants.PASSPORT_DATA_DIRECTORY_NAME + Constants.PASSPORT_HTML_FILE_NAME;
3838
#endif
39-
webViewObject.LoadURL(filePath);
39+
string escapedPath = filePath.Replace(" ", "%20");
40+
webViewObject.LoadURL(escapedPath);
4041
}
4142

4243
private void InvokeOnPostMessageError(string id, string message)

0 commit comments

Comments
 (0)