Merge pull request #450 from opencv/hotfix-0.4.1

Fixed JS syntax for Google Chrome < 72
main
Nikita Manovich 7 years ago committed by GitHub
commit 0408756cf5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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