test-polyfill.js 217 B

1234567
  1. if (!('currentScript' in document)) {
  2. Object.defineProperty(document, 'currentScript', { get: window.getCurrentScript })
  3. }
  4. if (document.currentScript) {
  5. document.getElementById('app').textContent = 'It works!'
  6. }