We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3a0c268 commit aff8b86Copy full SHA for aff8b86
encryptcontent/decrypt-contents.tpl.js
@@ -137,7 +137,12 @@ function reload_js(src) {
137
if (script_tag) {
138
script_tag.remove();
139
new_script_tag = document.createElement('script');
140
- new_script_tag.innerHTML = script_tag.innerHTML;
+ if (script_tag.innerHTML) {
141
+ new_script_tag.innerHTML = script_tag.innerHTML;
142
+ }
143
+ if (script_tag.src) {
144
+ new_script_tag.src = script_tag.src;
145
146
head.appendChild(new_script_tag);
147
}
148
} else {
0 commit comments