purge a function
This commit is contained in:
parent
a35d0d26f8
commit
b9debc978f
1 changed files with 1 additions and 4 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue