From 6ab19c819fd665576ceadeef195301985b74d2a4 Mon Sep 17 00:00:00 2001 From: IngridRegina Date: Sat, 20 Jun 2020 16:07:55 +0300 Subject: [PATCH] removing unnecessary part from else if --- script.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/script.js b/script.js index 0e56f0d..a02307e 100644 --- a/script.js +++ b/script.js @@ -10,7 +10,7 @@ function update(){ if (first == null) { playing = 'Mitte munnigi ei mängi prg'; } - else if (first != null && first.artist != undefined) { + else if (first.artist != undefined) { playing = first.artist + ' - '; playing += first.title; } else { @@ -55,9 +55,6 @@ function getFirstPlaying(jsonObj){ var sources = jsonObj.icestats.source; var masterStreams = [ '/live', - '/sai', - '/siinus', - '/viido' ] for(o=0; o < sources.length; o++) {