Skip to content

Commit

Permalink
Merge pull request #125 from immutable/fix/ios-macos-plus-sign
Browse files Browse the repository at this point in the history
[DX-2502] fix: ios and macos converting plus signs in json response to spaces
  • Loading branch information
nattb8 authored Nov 23, 2023
2 parents 73a3929 + 16dcaa7 commit d397fa3
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -319,9 +319,9 @@ public void CallFromJS(string message)
{
#if !UNITY_ANDROID
#if UNITY_2018_4_OR_NEWER
message = UnityWebRequest.UnEscapeURL(message);
message = UnityWebRequest.UnEscapeURL(message.Replace("+", "%2B"));
#else // UNITY_2018_4_OR_NEWER
message = WWW.UnEscapeURL(message);
message = WWW.UnEscapeURL(message.Replace("+", "%2B"));
#endif // UNITY_2018_4_OR_NEWER
#endif // !UNITY_ANDROID
onJS(message);
Expand Down

0 comments on commit d397fa3

Please sign in to comment.