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 44bd980 commit 1bad0f4Copy full SHA for 1bad0f4
wcfsetup/install/files/js/3rdParty/prism/prism.js
@@ -185,7 +185,7 @@ var _ = {
185
if (typeof document === 'undefined') {
186
return null;
187
}
188
- 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 */) {
189
return /** @type {any} */ (document.currentScript);
190
191
0 commit comments