@internetstiftelsen/styleguide 2.24.39 → 2.24.40
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -100,6 +100,14 @@ document.body.addEventListener('click', function (e) {
|
|
|
100
100
|
var playBtn = e.target.closest('.js-play-episode');
|
|
101
101
|
if (playBtn) {
|
|
102
102
|
e.preventDefault();
|
|
103
|
+
|
|
104
|
+
// Clear old episodedata
|
|
105
|
+
audio.currentTime = 0;
|
|
106
|
+
timeupdate();
|
|
107
|
+
audio.pause();
|
|
108
|
+
sessionStorage.removeItem('episodeData');
|
|
109
|
+
|
|
110
|
+
// Play new episode
|
|
103
111
|
playEpisode(playBtn);
|
|
104
112
|
}
|
|
105
113
|
});
|
package/package.json
CHANGED
|
@@ -113,6 +113,14 @@ document.body.addEventListener('click', (e) => {
|
|
|
113
113
|
const playBtn = e.target.closest('.js-play-episode');
|
|
114
114
|
if (playBtn) {
|
|
115
115
|
e.preventDefault();
|
|
116
|
+
|
|
117
|
+
// Clear old episodedata
|
|
118
|
+
audio.currentTime = 0;
|
|
119
|
+
timeupdate();
|
|
120
|
+
audio.pause();
|
|
121
|
+
sessionStorage.removeItem('episodeData');
|
|
122
|
+
|
|
123
|
+
// Play new episode
|
|
116
124
|
playEpisode(playBtn);
|
|
117
125
|
}
|
|
118
126
|
});
|