update setting

This commit is contained in:
Harvey committed 2022-02-11 17:33:35 +08:00
1 parent 0616d944c5
commit 12047d90ef
8 files changed
+31 -25

No files matched your search

@@ -27,12 +27,12 @@ export default function playbackRate(art) {
$desc.innerText = getI18n(art.playbackRate);
art.on('playbackRate', (value) => {
$desc.innerText = getI18n(art.playbackRate);
const $current = queryAll('.art-setting-item', $panel).find(
(item) => Number(item.dataset.value) === value,
);
if ($current) {
inverseClass($current, 'art-current');
$desc.innerText = getI18n(art.playbackRate);
}
});
},