add some polyfill to demo

This commit is contained in:
Harvey committed 2021-12-06 10:23:12 +08:00
1 parent d536452067
commit 090a1b6f7d
3 files changed
+11 -5

No files matched your search

+4 -4
View File
@@ -108,7 +108,7 @@
}
function runExample(name) {
fetch(`./assets/example/${name}.js`)
fetch('./assets/example/' + name + '.js')
.then(function (response) {
return response.text();
})
@@ -150,9 +150,9 @@
var code = mirror.getValue();
eval(code);
initArt(Artplayer.instances[0]);
console.debug(`Artplayer@${Artplayer.version}`);
console.debug(`Env@${Artplayer.env}`);
console.debug(`Build@${formatDate(Artplayer.build)}`);
console.debug('Artplayer@' + Artplayer.version);
console.debug('Env@' + Artplayer.env);
console.debug('Build@' + formatDate(Artplayer.build));
}
function initApp() {