Fix minor issue

This commit is contained in:
Tamius Han 2020-06-01 23:52:29 +02:00
parent ee7d958224
commit 95d8d8a8cb

View File

@ -713,7 +713,11 @@ class ArDetector {
// the aspect ratio to defaults
this.logger.log('error', 'arDetect', `%c[ArDetect::frameCheck] There was a problem setting blackbar. Doing nothing. Error:`, e);
this.guardline.reset();
try {
this.guardline.reset();
} catch (e) {
// no guardline, no bigge
}
// WE DO NOT RESET ASPECT RATIO HERE IN CASE OF PROBLEMS, CAUSES UNWARRANTED RESETS:
// (eg. here: https://www.youtube.com/watch?v=nw5Z93Yt-UQ&t=410)
//