0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-20 22:42:53 -05:00

Cleaned up frontend audio card player script

refs https://github.com/TryGhost/Team/issues/1230

- removes unnecessary use of src attribute in the script as the theme file is already loaded with the src
This commit is contained in:
Rishabh 2021-12-10 01:30:06 +05:30
parent f272da0536
commit 4f52e28c04

View file

@ -31,8 +31,6 @@
let raf = null;
let currentPlaybackRateIdx = 1;
audio.src = audioElementContainer.getAttribute('data-kg-audio-src');
const whilePlaying = () => {
seekSlider.value = Math.floor(audio.currentTime);
currentTimeContainer.textContent = calculateTime(seekSlider.value);