Skip to content

Commit d349d15

Browse files
authored
Merge pull request #162 from immutable/fix/file-path-space
[DX-2623] fix: gree browser does not load index file if path has spaces
2 parents cd2263f + b713b31 commit d349d15

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)