Fixed JS syntax for Google Chrome < 72

main
Boris Sekachev 7 years ago
parent 4fe7078dd5
commit e3cd297572

@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [0.4.1] - 2019-05-14
### Fixed
- JavaScript syntax incompatibility with Google Chrome versions less than 72
## [0.4.0] - 2019-05-04 ## [0.4.0] - 2019-05-04
### Added ### Added
- OpenVINO auto annotation: it is possible to upload a custom model and annotate images automatically. - OpenVINO auto annotation: it is possible to upload a custom model and annotate images automatically.

@ -447,7 +447,7 @@ class DashboardView {
try { try {
LabelsInfo.deserialize(labels) LabelsInfo.deserialize(labels)
return true; return true;
} catch { } catch (error) {
return false; return false;
} }
} }

@ -71,7 +71,7 @@ class LoggerHandler {
addContinuedEvent(event) { addContinuedEvent(event) {
this._userActivityHandler.updateTimer(); this._userActivityHandler.updateTimer();
event.onCloseCallback = this._closeCallback; event.onCloseCallback = this._closeCallback.bind(this);
return event; return event;
} }
@ -152,7 +152,9 @@ class LoggerHandler {
this._userActivityHandler.updateTimer(); this._userActivityHandler.updateTimer();
} }
_closeCallback = event => { this._pushEvent(event); }; _closeCallback(event) {
this._pushEvent(event);
}
updateTimer() { updateTimer() {
this._userActivityHandler.updateTimer(); this._userActivityHandler.updateTimer();

Loading…
Cancel
Save