Files
railwaysystem/RuoYi-Vue/ruoyi-ui/node_modules1/@soda/get-current-script/fixtures/log-src-in-microtask.js
T

9 lines
261 B
JavaScript
Raw Normal View History

2026-09-10 15:40:10 +08:00
var app = document.getElementById('app')
if (typeof Promise === 'undefined') {
// skip this test in IE
app.textContent = window.getCurrentScript().src
} else {
Promise.resolve().then(function() {
app.textContent = window.getCurrentScript().src
})
}