update:优化部分细节

This commit is contained in:
jiewenhuang 2023-09-17 22:37:56 +08:00
parent 650ae7dd78
commit 4ece113561
1 changed files with 1 additions and 1 deletions

View File

@ -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();
}