From 740599c4f5d9b62419d24febec8c85a319339d2f Mon Sep 17 00:00:00 2001 From: Micah Snyder Date: Thu, 9 Nov 2023 18:27:13 -0500 Subject: [PATCH] Fix theme customizations for ClamAV --- theme/book.js | 7 +------ theme/index.hbs | 7 ++----- 2 files changed, 3 insertions(+), 11 deletions(-) diff --git a/theme/book.js b/theme/book.js index aa12e7e..1174abf 100644 --- a/theme/book.js +++ b/theme/book.js @@ -327,16 +327,11 @@ function playground_text(playground, hidden = true) { function set_theme(theme, store = true) { let ace_theme; - if (theme == 'coal' || theme == 'navy') { + if (theme == 'clamav') { stylesheets.ayuHighlight.disabled = true; stylesheets.tomorrowNight.disabled = false; stylesheets.highlight.disabled = true; - ace_theme = "ace/theme/tomorrow_night"; - } else if (theme == 'ayu') { - stylesheets.ayuHighlight.disabled = false; - stylesheets.tomorrowNight.disabled = true; - stylesheets.highlight.disabled = true; ace_theme = "ace/theme/tomorrow_night"; } else { stylesheets.ayuHighlight.disabled = true; diff --git a/theme/index.hbs b/theme/index.hbs index 69d92b5..149a122 100644 --- a/theme/index.hbs +++ b/theme/index.hbs @@ -159,11 +159,8 @@ {{#if search_enabled}}