-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixes! #30
Conversation
Please share a test report. We can't afford feature degradation rn. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved, with suggestions.
@@ -23,7 +24,6 @@ mergeInto(LibraryManager.library, { | |||
} | |||
|
|||
var options = optionsJson ? JSON.parse(UTF8ToString(optionsJson)) : {}; | |||
// console.log(options) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove, don't comment.
Keeps the code neat and clean.
@@ -929,7 +929,7 @@ public void SetState(string key, float value, bool reliable = false) | |||
{ | |||
if (IsRunningInBrowser()) | |||
{ | |||
SetPlayerStateFloatByPlayerId(id, key, value.ToString(), reliable); | |||
SetPlayerStateFloatByPlayerId(id, key, value.ToString(CultureInfo.InvariantCulture), reliable); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this done everywhere where ToString
is used? If yes, has it been tested to not have any negative effects?
@@ -12,6 +12,7 @@ mergeInto(LibraryManager.library, { | |||
// onLaunchCallback | |||
) { | |||
function embedScript(src) { | |||
script.crossOrigin = 'anonymous'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tested this? does this cause any issues?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did a build test on the demo game.