[Bug] Web Widget Engine does not support ECMAScript6,
so it is needed to workaround internal code which used it.
[Verification] Code compiles without errors.
TCT passrate of sensors is 100%.
Some Web Widget tests passed without error.
Change-Id: I2110b35ce0ed9a4a8e3660b9c77b2a687585063f
Signed-off-by: Piotr Kosko <p.kosko@samsung.com>
};
var _listener = function(object) {
- if (object.sensorType.startsWith('LED_')) {
+ if (object.sensorType.substring(0,4) === 'LED_') {
object.sensorType = 'HRM_RAW';
}
_sensorListeners[object.sensorType].tryCall(object);