diff --git a/client/addPodcast.html b/client/addPodcast.html
index 633f935..3789de0 100644
--- a/client/addPodcast.html
+++ b/client/addPodcast.html
@@ -170,7 +170,7 @@
}
var self = this;
self.searching = true;
- let formData = new FormData();
+ var formData = new FormData();
formData.append("file", currentFile);
axios
diff --git a/client/episodes.html b/client/episodes.html
index 9094993..a49172a 100644
--- a/client/episodes.html
+++ b/client/episodes.html
@@ -260,7 +260,7 @@
return false;
}
function changePlayedStatus(id, status) {
- let endpoint = status ? "markPlayed" : "markUnplayed";
+ var endpoint = status ? "markPlayed" : "markUnplayed";
axios
.get("/podcastitems/" + id + "/" + endpoint, {
isPlayed: status,
@@ -289,7 +289,7 @@
return false;
}
function changeBookmarkStatus(id, status) {
- let endpoint = status ? "bookmark" : "unbookmark";
+ var endpoint = status ? "bookmark" : "unbookmark";
axios
.get("/podcastitems/" + id + "/" + endpoint, {
isPlayed: status,
diff --git a/client/index.html b/client/index.html
index 0225934..46e04ef 100644
--- a/client/index.html
+++ b/client/index.html
@@ -261,7 +261,7 @@
this.socket.send(getWebsocketMessage("Enqueue",`{"podcastId":"${id}"}`))
},
sortPodcasts(order){
- let compareFunction;
+ var compareFunction;
switch(order){
case "dateAdded-asc":compareFunction=(a,b)=>Date.parse(a.CreatedAt)-Date.parse(b.CreatedAt);break;
case "dateAdded-desc":compareFunction=(a,b)=>Date.parse(b.CreatedAt)-Date.parse(a.CreatedAt);break;
@@ -298,7 +298,7 @@
this.podcasts.sort(compareFunction)
},
getEpisodeCountTooltip(podcast){
- let title=`${podcast.DownloadedEpisodesCount} episodes downloaded out of total ${podcast.AllEpisodesCount} episodes`
+ var title=`${podcast.DownloadedEpisodesCount} episodes downloaded out of total ${podcast.AllEpisodesCount} episodes`
if(podcast.DownloadingEpisodesCount){
title+= '\n'+podcast.DownloadingEpisodesCount+' episodes in the queue.'
@@ -308,7 +308,7 @@
getFormattedLastEpisodeDate(podcast){
const options={month:"short", day:"numeric", year:"numeric"}
//todo: this is a really dirty hack which needs to be fixed when we work on the episode page
- let dt=new Date(Date.parse(podcast.LastEpisode.substr(0,10)));
+ var dt=new Date(Date.parse(podcast.LastEpisode.substr(0,10)));
return dt.toDateString()
},
downloadAllEpisodes(id) { downloadAllEpisodes(id);},
diff --git a/client/player.html b/client/player.html
index acba249..77b51e7 100644
--- a/client/player.html
+++ b/client/player.html
@@ -809,7 +809,7 @@ div#large-visualization{
removeSongTime(songId){
if(localStorage){
- let songTimes=localStorage.songTimes;
+ var songTimes=localStorage.songTimes;
if(!songTimes){
songTimes={};
}else{
@@ -825,7 +825,7 @@ div#large-visualization{
,saveSongTime(songId,time){
if(localStorage){
- let songTimes=localStorage.songTimes;
+ var songTimes=localStorage.songTimes;
if(!songTimes){
songTimes={};
}else{
@@ -840,8 +840,8 @@ div#large-visualization{
getSavedSongTime(){
if(localStorage){
- let song=Amplitude.getActiveSongMetadata();
- let songTimes=localStorage.songTimes;
+ var song=Amplitude.getActiveSongMetadata();
+ var songTimes=localStorage.songTimes;
if(!songTimes){
songTimes={};
}else{
@@ -855,8 +855,8 @@ div#large-visualization{
return 0;
},
changeSpeed(){
- let currentSpeedIndex= this.speedOptions.indexOf(this.speed);
- let nextIndex=0;
+ var currentSpeedIndex= this.speedOptions.indexOf(this.speed);
+ var nextIndex=0;
if(currentSpeedIndex===-1 || currentSpeedIndex===this.speedOptions.length-1){
nextIndex=0;
}else{
@@ -867,7 +867,7 @@ div#large-visualization{
},
getSongsFromItems(items){
return items.map(x=>{
- let toReturn= {
+ var toReturn= {
id:x.ID,
name:x.Title,
url:x.DownloadPath,
@@ -882,7 +882,7 @@ div#large-visualization{
});
},
getFormattedLastEpisodeDate(item){
- let dt=new Date(Date.parse(item.PubDate.substr(0,10)));
+ var dt=new Date(Date.parse(item.PubDate.substr(0,10)));
return dt.toDateString()
},
formatDuration(total) {
@@ -933,7 +933,7 @@ div#large-visualization{
});
},
mounted(){
- let volume=50;
+ var volume=50;
if(localStorage?.playerVolume){
volume=parseInt(localStorage.playerVolume)
}
@@ -961,7 +961,7 @@ div#large-visualization{
// },
'timeupdate':function(){
- let secs=Math.floor(Amplitude.getSongPlayedSeconds());
+ var secs=Math.floor(Amplitude.getSongPlayedSeconds());
if(secs%10===0){
song=Amplitude.getActiveSongMetadata();
if(Amplitude.getSongPlayedPercentage()>20){
@@ -1025,7 +1025,7 @@ div#large-visualization{
-let songElements = document.getElementsByClassName('song');
+var songElements = document.getElementsByClassName('song');
for( var i = 0; i < songElements.length; i++ ){
songElements[i].addEventListener('click', function(){
@@ -1033,11 +1033,11 @@ for( var i = 0; i < songElements.length; i++ ){
});
}
-let markedAsPlayed=[];
+var markedAsPlayed=[];
function markSongAsPlayed(id) {
- let endpoint = "markPlayed";
+ var endpoint = "markPlayed";
if(markedAsPlayed.indexOf(id)!==-1){
return;
}