增加自定义html内容,音乐播放器属性增强

This commit is contained in:
mjsoftware 2024-12-21 11:04:55 +08:00
parent 7274702b01
commit c81790bdcd

View File

@ -110,8 +110,8 @@ document.addEventListener('DOMContentLoaded', () => {
} }
// eslint-disable-next-line no-async-promise-executor // eslint-disable-next-line no-async-promise-executor
new Promise(async (resolve) => { new Promise(async (resolve) => {
if (this.hasAttribute('meetingApi')) { if (this.hasAttribute('meetingUrl')) {
this.options.audio = await fetch(this.getAttribute('meetingApi')) this.options.audio = await fetch(this.getAttribute('meetingUrl'))
.then((response) => response.json()) .then((response) => response.json())
} else if (this.hasAttribute('song')) { } else if (this.hasAttribute('song')) {
this.options.audio = await fetch( this.options.audio = await fetch(