mirror of
https://ghfast.top/https://github.com/zsjy/halo-theme-dream2.0-plus.git
synced 2025-03-16 00:49:40 +08:00
增加自定义html内容,音乐播放器属性增强
This commit is contained in:
parent
7274702b01
commit
c81790bdcd
@ -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(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user