first commit
This commit is contained in:
9
app_vue/node_modules/@soda/get-current-script/fixtures/log-src-in-microtask.js
generated
vendored
Normal file
9
app_vue/node_modules/@soda/get-current-script/fixtures/log-src-in-microtask.js
generated
vendored
Normal file
@ -0,0 +1,9 @@
|
||||
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
|
||||
})
|
||||
}
|
Reference in New Issue
Block a user