Files
jefferyzhao b9bdc8598b first commit
2025-07-31 17:44:12 +08:00

8 lines
217 B
JavaScript

if (!('currentScript' in document)) {
Object.defineProperty(document, 'currentScript', { get: window.getCurrentScript })
}
if (document.currentScript) {
document.getElementById('app').textContent = 'It works!'
}