Skip to content

Commit

Permalink
增加自定义html内容,音乐播放器属性增强
Browse files Browse the repository at this point in the history
  • Loading branch information
mjsoftking committed Dec 21, 2024
1 parent 7274702 commit c81790b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/js/mew-custom.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,8 @@ document.addEventListener('DOMContentLoaded', () => {
}
// eslint-disable-next-line no-async-promise-executor
new Promise(async (resolve) => {
if (this.hasAttribute('meetingApi')) {
this.options.audio = await fetch(this.getAttribute('meetingApi'))
if (this.hasAttribute('meetingUrl')) {
this.options.audio = await fetch(this.getAttribute('meetingUrl'))
.then((response) => response.json())
} else if (this.hasAttribute('song')) {
this.options.audio = await fetch(
Expand Down

0 comments on commit c81790b

Please sign in to comment.