From 20433ed50d1a19dc9a72681f1f79c33500fffe8b Mon Sep 17 00:00:00 2001 From: Cell <1024@lruihao.cn> Date: Wed, 24 Apr 2024 10:35:13 +0800 Subject: [PATCH] :bug: Fix: using fixit-encryptor shortcode in an unencrypted article caused other styles of the article to not take effect Fixes #410 --- assets/js/theme.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/assets/js/theme.js b/assets/js/theme.js index 81072a124..9fb19ba14 100644 --- a/assets/js/theme.js +++ b/assets/js/theme.js @@ -1168,7 +1168,8 @@ class FixIt { try { if (this.config.encryption) { this.initFixItDecryptor(); - } else if (!this.config.encryption?.all) { + } + if (!this.config.encryption?.all) { this.initTwemoji(); this.initDetails(); this.initLightGallery();