mirror of
https://ghfast.top/https://github.com/zsjy/halo-theme-dream2.0-plus.git
synced 2025-03-15 20:09:41 +08:00
支持获取aplayer
This commit is contained in:
parent
bdcb309fed
commit
0963144853
@ -144,7 +144,12 @@ document.addEventListener('DOMContentLoaded', () => {
|
||||
this.aplayer = new APlayer(this.options)
|
||||
resolve()
|
||||
})
|
||||
.catch((e) => {})
|
||||
.catch((e) => {
|
||||
})
|
||||
}
|
||||
|
||||
getAPlayer() {
|
||||
return this.aplayer
|
||||
}
|
||||
|
||||
disconnectedCallback() {
|
||||
@ -447,6 +452,7 @@ document.addEventListener('DOMContentLoaded', () => {
|
||||
this.render()
|
||||
}
|
||||
}
|
||||
|
||||
render() {
|
||||
this.options = {
|
||||
captions: this.hasAttribute('captions') && this.getAttribute('captions') !== 'false',
|
||||
|
Loading…
x
Reference in New Issue
Block a user