mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-11-29 05:09:46 +01:00
9 lines
261 B
JavaScript
9 lines
261 B
JavaScript
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
|
|
})
|
|
}
|