From 4f52e28c041327c65e3ee23baa24f820b34b4bb1 Mon Sep 17 00:00:00 2001 From: Rishabh Date: Fri, 10 Dec 2021 01:30:06 +0530 Subject: [PATCH] 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 --- core/frontend/src/cards/js/audio.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/core/frontend/src/cards/js/audio.js b/core/frontend/src/cards/js/audio.js index 5f5b678e3c..6e3d6cde14 100644 --- a/core/frontend/src/cards/js/audio.js +++ b/core/frontend/src/cards/js/audio.js @@ -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);