From f4cc2dffd6cc080f90ec7a4f73928d922f6ff9bc Mon Sep 17 00:00:00 2001 From: Alfonso Salces Date: Tue, 13 Sep 2022 09:27:03 +0200 Subject: [PATCH] fix: Remove style attribute from body for prevent unexpected background --- src/common/src/createQRScannerAdapter.js | 2 +- www/www.min.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/src/createQRScannerAdapter.js b/src/common/src/createQRScannerAdapter.js index ac5ab328..578452dc 100644 --- a/src/common/src/createQRScannerAdapter.js +++ b/src/common/src/createQRScannerAdapter.js @@ -44,7 +44,7 @@ function resetBodyStyles() { } } for (var key of Object.keys(document.body.style)) { - document.body.style[key] = initialStyles[key] ?? ''; + document.body.style[key] = initialStyles[key] ? initialStyles[key] : ''; } }, 100); } diff --git a/www/www.min.js b/www/www.min.js index 4c81eea1..743566d3 100644 --- a/www/www.min.js +++ b/www/www.min.js @@ -148,7 +148,7 @@ function resetBodyStyles() { } } for (var key of Object.keys(document.body.style)) { - document.body.style[key] = initialStyles[key] ?? ''; + document.body.style[key] = initialStyles[key] ? initialStyles[key] : ''; } }, 100); }