From: Darren Date: Wed, 31 Dec 2014 14:50:58 +0000 (+0000) Subject: Spotify media message consistency + cleanup X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=6388af175932313e285cbeb00b8ad2b4d8966d24;p=KiwiIRC.git Spotify media message consistency + cleanup --- diff --git a/client/src/views/mediamessage.js b/client/src/views/mediamessage.js index 494d7b2..cd1702f 100644 --- a/client/src/views/mediamessage.js +++ b/client/src/views/mediamessage.js @@ -135,29 +135,29 @@ _kiwi.view.MediaMessage = Backbone.View.extend({ }, spotify: function () { - var uri = this.$el.data('uri'); - var method = this.$el.data('method'); - var that = this; + var uri = this.$el.data('uri'), + method = this.$el.data('method'), + spot, html; switch (method) { case "track": case "album": - var spot = { - url: 'https://embed.spotify.com/?uri=' + uri, - width: 300, - height: 80 - }; - break; + spot = { + url: 'https://embed.spotify.com/?uri=' + uri, + width: 300, + height: 80 + }; + break; case "artist": - var spot = { - url: 'https://embed.spotify.com/follow/1/?uri=' + uri +'&size=detail&theme=dark', - width: 300, - height: 56 - }; - break; - }; - - var html = ''; + spot = { + url: 'https://embed.spotify.com/follow/1/?uri=' + uri +'&size=detail&theme=dark', + width: 300, + height: 56 + }; + break; + } + + html = ''; return $(html); },