From 3d7a47662ebc5b167aa8010ebe2279675a9cf637 Mon Sep 17 00:00:00 2001 From: Tamius Han Date: Sat, 4 Jan 2020 02:04:32 +0100 Subject: [PATCH] minor fix for autoar --- src/ext/lib/ar-detect/ArDetector.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ext/lib/ar-detect/ArDetector.js b/src/ext/lib/ar-detect/ArDetector.js index 20a7231..1f95469 100644 --- a/src/ext/lib/ar-detect/ArDetector.js +++ b/src/ext/lib/ar-detect/ArDetector.js @@ -464,7 +464,7 @@ class ArDetector { // poglejmo, če se je razmerje stranic spremenilo // check if aspect ratio is changed: var lastAr = this.conf.resizer.getLastAr(); - if (lastAr.type === AspectRatio.Automatic && lastAr.ratio !== null){ + if (lastAr.type === AspectRatio.Automatic && lastAr.ratio !== null && lastAr.ratio !== undefined){ // spremembo lahko zavrnemo samo, če uporabljamo avtomatski način delovanja in če smo razmerje stranic // že nastavili. //