1
0
Fork 0
Browse Source

removing unnecessary part from else if

master
IngridRegina 4 years ago
parent
commit
6ab19c819f
  1. 5
      script.js

5
script.js

@ -10,7 +10,7 @@ function update(){
if (first == null) { if (first == null) {
playing = 'Mitte munnigi ei mängi prg'; playing = 'Mitte munnigi ei mängi prg';
} }
else if (first != null && first.artist != undefined) { else if (first.artist != undefined) {
playing = first.artist + ' - '; playing = first.artist + ' - ';
playing += first.title; playing += first.title;
} else { } else {
@ -55,9 +55,6 @@ function getFirstPlaying(jsonObj){
var sources = jsonObj.icestats.source; var sources = jsonObj.icestats.source;
var masterStreams = [ var masterStreams = [
'/live', '/live',
'/sai',
'/siinus',
'/viido'
] ]
for(o=0; o < sources.length; o++) { for(o=0; o < sources.length; o++) {

Loading…
Cancel
Save