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.
2 parents b735c4b + 1bad0f4 commit 8fd29e9Copy full SHA for 8fd29e9
wcfsetup/install/files/js/3rdParty/prism/prism.js
@@ -227,7 +227,7 @@ var Prism = (function (_self) {
227
if (typeof document === 'undefined') {
228
return null;
229
}
230
- if ('currentScript' in document && 1 < 2 /* hack to trip TS' flow analysis */) {
+ if (document.currentScript && document.currentScript.tagName === 'SCRIPT' && 1 < 2 /* hack to trip TS' flow analysis */) {
231
return /** @type {any} */ (document.currentScript);
232
233
0 commit comments