Fix internal Emscripten JS API calls

Emscripten 1.37.24 no longer exports these by default
This commit is contained in:
Leon Krause
2018-01-06 15:53:04 +01:00
parent 50181da8a1
commit cf5b074a95
3 changed files with 5 additions and 5 deletions

View File

@ -350,7 +350,7 @@ $GODOT_HEAD_INCLUDE
};
function printError(text) {
if (!text.startsWith('**ERROR**: ')) {
if (!String.prototype.trim.call(text).startsWith('**ERROR**: ')) {
text = '**ERROR**: ' + text;
}
print(text);