From a5aa282a01badf854bcc2cf7bbda5369cbaad213 Mon Sep 17 00:00:00 2001 From: Tamius Han Date: Tue, 21 Aug 2018 00:48:15 +0200 Subject: [PATCH] CSS watcher reimplemented, seems to be working (fix #43) --- js/modules/ArDetect.js | 2 +- js/modules/Resizer.js | 157 ++++++++++++++++++++++++++--------------- 2 files changed, 102 insertions(+), 57 deletions(-) diff --git a/js/modules/ArDetect.js b/js/modules/ArDetect.js index ca8cf47..fdb29f1 100644 --- a/js/modules/ArDetect.js +++ b/js/modules/ArDetect.js @@ -14,7 +14,7 @@ class ArDetector { this.canFallback = true; this.fallbackMode = false; - this.blackLevel = this.settings.active.arDetect.blackLevel_default; + this.blackLevel = this.settings.active.arDetect.blackLevel_default; } init(){ diff --git a/js/modules/Resizer.js b/js/modules/Resizer.js index bf2f330..47274d6 100644 --- a/js/modules/Resizer.js +++ b/js/modules/Resizer.js @@ -22,12 +22,18 @@ class Resizer { // load up default values this.correctedVideoDimensions = {}; this.currentCss = {}; + this.currentStyleString = ""; + this.currentCssValidFor = {}; // restore watchdog. While true, applyCss() tries to re-apply new css until this value becomes false again // value becomes false when width and height of