samedi 2 avril 2016

If else in Javascript: Expected ')'

im newbie in javascript. Can you guys help me on this Dolby script implementation? Getting error on Microsoft Edge: expected ')' after if statement.

         this.analyzer = new Analyzer({
            if( Dolby.checkDDPlus() === true ){
            url: 'http://ift.tt/1RFKfXf',
            } else {
            url: 'http://ift.tt/1ML9j2p',
            }
            onPlay: function() {
                button.classList.add('pause');
                button.classList.remove('play');
            },
            onPause: function() {
                button.classList.remove('pause');
                button.classList.add('play');
            },
            onEnd: function() {
                button.classList.remove('pause');
                button.classList.add('play');
            }
        });

Thank you

Aucun commentaire:

Enregistrer un commentaire