Files
railwaysystem/RuoYi-Vue/ruoyi-ui/node_modules2/@soda/get-current-script/fixtures/test-polyfill.js
T

7 lines
217 B
JavaScript
Raw Normal View History

2026-09-10 15:40:10 +08:00
if (!('currentScript' in document)) {
Object.defineProperty(document, 'currentScript', { get: window.getCurrentScript })
}
if (document.currentScript) {
document.getElementById('app').textContent = 'It works!'
}