mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 01:24:03 +02:00
Fixed bug where lack of 0 as prefix for numbers would throw an error
This commit is contained in:
parent
1b52d700a0
commit
1387f5f322
1 changed files with 1 additions and 1 deletions
|
@ -64,7 +64,7 @@
|
|||
function createEmitNumberPropertyUpdateFunction(propertyName) {
|
||||
return function() {
|
||||
EventBridge.emitWebEvent(
|
||||
'{ "type":"update", "properties":{"' + propertyName + '":' + this.value + '}}'
|
||||
'{ "type":"update", "properties":{"' + propertyName + '":' + parseFloat(this.value).toFixed(2) + '}}'
|
||||
);
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue