From b9debc978f2f5165c5718781c2d16242ea3702df Mon Sep 17 00:00:00 2001 From: Amaru8 <52407090+Amaru8@users.noreply.github.com> Date: Sun, 22 May 2022 07:50:18 +0200 Subject: [PATCH] purge a function --- src/renderer/views/components/audio-playbackrate.ejs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/renderer/views/components/audio-playbackrate.ejs b/src/renderer/views/components/audio-playbackrate.ejs index 9e1f1242..0b94e0c6 100644 --- a/src/renderer/views/components/audio-playbackrate.ejs +++ b/src/renderer/views/components/audio-playbackrate.ejs @@ -47,15 +47,12 @@ }, saveValue(newValue) { newValue = Number(newValue); - if (this.isAllowedRate(newValue)) { + if (newValue >= 0.25 && newValue <= 2) { newValue = String(newValue).length > 6 ? newValue.toFixed(2) : newValue; this.$root.mk.playbackRate = newValue; this.$root.cfg.audio.playbackRate = newValue; this.playbackRate = newValue; } - }, - isAllowedRate(input) { - return input >= 0.25 && input <= 2 ? true : false; } } });