diff --git a/src/__init__.py b/src/__init__.py index 9d1839e..3e7fd9e 100644 --- a/src/__init__.py +++ b/src/__init__.py @@ -111,12 +111,7 @@ class EditorPreview(object): c = note.ephemeral_card() a = mw.prepare_card_text_for_display(c.answer()) a = gui_hooks.card_will_show(a, c, "clayoutAnswer") - if theme_manager.night_mode: - bodyclass = theme_manager.body_classes_for_card_ord( - c.ord, mw.pm.night_mode() - ) - else: - bodyclass = theme_manager.body_classes_for_card_ord(c.ord) + bodyclass = theme_manager.body_classes_for_card_ord(c.ord, theme_manager.night_mode) bodyclass += " editor-preview" return f"_showAnswer({json.dumps(a)},'{bodyclass}');"