update:优化部分细节
This commit is contained in:
parent
650ae7dd78
commit
4ece113561
|
@ -87,7 +87,7 @@ document.addEventListener("DOMContentLoaded", () => {
|
|||
this.options = {
|
||||
id: this.getAttribute("id"),
|
||||
color: this.getAttribute("color") || "#1989fa",
|
||||
autoplay: this.getAttribute("autoplay") ? true : false,
|
||||
autoplay: !!this.getAttribute("autoplay"),
|
||||
};
|
||||
this.render();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue