first commit
This commit is contained in:
7
app_vue/node_modules/@soda/get-current-script/fixtures/test-polyfill.js
generated
vendored
Normal file
7
app_vue/node_modules/@soda/get-current-script/fixtures/test-polyfill.js
generated
vendored
Normal file
@ -0,0 +1,7 @@
|
||||
if (!('currentScript' in document)) {
|
||||
Object.defineProperty(document, 'currentScript', { get: window.getCurrentScript })
|
||||
}
|
||||
|
||||
if (document.currentScript) {
|
||||
document.getElementById('app').textContent = 'It works!'
|
||||
}
|
Reference in New Issue
Block a user