Skip to content

Commit 139d7c7

Browse files
committed
allow custom fixes or re-runs of scripts after decryption
1 parent 836ccd5 commit 139d7c7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

encryptcontent/decrypt-contents.tpl.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -448,6 +448,9 @@ function base64url_decode(input) {
448448
{% if webcrypto %}await {% endif %}reload_js(reload_scripts[i]);
449449
}
450450
{%- endif %}
451+
if (typeof theme_run_after_decryption !== 'undefined') {
452+
theme_run_after_decryption();
453+
}
451454
if (window.location.hash) { //jump to anchor if hash given after decryption
452455
window.location.href = window.location.hash;
453456
}

0 commit comments

Comments
 (0)