Perf: optimize fixit-encryptor shortcode and add documentations for it (#123)

This commit is contained in:
Cell
2022-07-02 13:52:04 +08:00
parent ef9063febe
commit def5f4ec75
13 changed files with 146 additions and 32 deletions
+6 -1
View File
@@ -925,8 +925,13 @@ class FixIt {
});
}
});
if (this.config.encryption?.shortcode) {
this.decryptor.addEventListener('decrypted', () => {
this.decryptor.initShortcodes();
})
this.decryptor.initShortcodes();
}
this.config.encryption?.all && this.decryptor.init();
this.config.encryption?.shortcode && this.decryptor.initShortcodes();
}
onScroll() {