Skip to content

Commit 9c4f0e9

Browse files
committed
Add "material-encryptcontent: reload all subscriptions" fix to js template
1 parent a52f82d commit 9c4f0e9

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

encryptcontent/decrypt-contents.tpl.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -434,8 +434,10 @@ function base64url_decode(input) {
434434
el.remove();
435435
}
436436
}
437-
438437
// any post processing on the decrypted content should be done here
438+
{%- if material %}
439+
document$.next(document);
440+
{%- else %}
439441
{% if arithmatex -%}
440442
if (typeof MathJax === 'object') { MathJax.typesetPromise();};
441443
{%- endif %}
@@ -447,6 +449,7 @@ function base64url_decode(input) {
447449
hljs.highlightElement(block);
448450
});
449451
{%- endif %}
452+
{%- endif %}
450453
{% if reload_scripts | length > 0 -%}
451454
let reload_scripts = {{ reload_scripts }};
452455
for (let i = 0; i < reload_scripts.length; i++) {

0 commit comments

Comments
 (0)