From a1a0ac3e49e6dc9a1dbc6588247321fae3fccb0e Mon Sep 17 00:00:00 2001 From: Ryan Meek <25127328+maykar@users.noreply.github.com> Date: Wed, 30 Jun 2021 11:26:32 -0400 Subject: [PATCH] cleanup --- kiosk-mode.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/kiosk-mode.js b/kiosk-mode.js index 05d0acd..000176b 100644 --- a/kiosk-mode.js +++ b/kiosk-mode.js @@ -94,8 +94,10 @@ class KioskMode { if (this.hideHeader || this.hideOverflow) { this.addStyle(`${this.hideHeader ? headerStyle : ""}${this.hideOverflow ? overflowStyle : ""}`, huiRoot); - if (this.hideHeader && this.queryString("cache")) this.setCache("kmHeader", "true"); - if (this.hideOverflow && this.queryString("cache")) this.setCache("kmOverflow", "true"); + if (this.queryString("cache")) { + if (this.hideHeader) this.setCache("kmHeader", "true"); + if (this.hideOverflow) this.setCache("kmOverflow", "true"); + } } else { this.removeStyle(huiRoot); }