Skip to content
This repository has been archived by the owner on May 26, 2022. It is now read-only.

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
maykar authored Jun 30, 2021
1 parent f15c785 commit a1a0ac3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions kiosk-mode.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit a1a0ac3

Please sign in to comment.