Skip to content

Commit 8fd29e9

Browse files
committed
Merge branch '5.5' into 6.0
2 parents b735c4b + 1bad0f4 commit 8fd29e9

File tree

1 file changed

+1
-1
lines changed
  • wcfsetup/install/files/js/3rdParty/prism

1 file changed

+1
-1
lines changed

wcfsetup/install/files/js/3rdParty/prism/prism.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ var Prism = (function (_self) {
227227
if (typeof document === 'undefined') {
228228
return null;
229229
}
230-
if ('currentScript' in document && 1 < 2 /* hack to trip TS' flow analysis */) {
230+
if (document.currentScript && document.currentScript.tagName === 'SCRIPT' && 1 < 2 /* hack to trip TS' flow analysis */) {
231231
return /** @type {any} */ (document.currentScript);
232232
}
233233

0 commit comments

Comments
 (0)