Skip to content

Commit

Permalink
Fix default theme for blocking/delaying pages
Browse files Browse the repository at this point in the history
  • Loading branch information
proginosko committed Mar 9, 2023
1 parent b07b84c commit 9f1e7da
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions blocked.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,10 @@
function processBlockInfo(info) {
if (!info) return;

if (info.theme) {
// Set theme
let link = document.getElementById("themeLink");
if (link) {
link.href = "/themes/" + (info.theme ? `${info.theme}.css` : "default.css");
}
// Set theme
let link = document.getElementById("themeLink");
if (link) {
link.href = "/themes/" + (info.theme ? `${info.theme}.css` : "default.css");
}

let blockedURL = document.getElementById("lbBlockedURL");
Expand Down

0 comments on commit 9f1e7da

Please sign in to comment.