Skip to content

Commit

Permalink
Merge pull request #323 from gaelian/kandan-322
Browse files Browse the repository at this point in the history
A more SSL friendly Kandan.
  • Loading branch information
fusion94 committed Mar 31, 2014
2 parents e9acd8d + ad9f2e0 commit 52a8e38
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ class Kandan.Plugins.MusicPlayer
Kandan.Store.get @pluginId, callbacks

@localFileUrl: (fileName) ->
"http://#{ window.location.hostname }:#{ window.location.port }/sounds/#{ fileName }"
"//#{ window.location.hostname }:#{ window.location.port }/sounds/#{ fileName }"

@localSounds: (name) ->
sounds = {
Expand Down
6 changes: 3 additions & 3 deletions app/assets/javascripts/backbone/plugins/vimeo_embed.js.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ class Kandan.Plugins.VimeoEmbed

@options:
regex: /^http[s]?://(w{3}.)?vimeo.com/(\d+)/i

template: _.template '''
<div class="vimeo-preview">
<iframe src="http://player.vimeo.com/video/<%= videoId %>" width="500" height="281" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>
<iframe src="//player.vimeo.com/video/<%= videoId %>" width="500" height="281" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>
<div class="name"><%= subtitle %></div>
</div>
'''
Expand All @@ -24,7 +24,7 @@ class Kandan.Plugins.VimeoEmbed
videoUrl = message.split(" ")[0]

videoId = message.match(@options.regex)[2]

subtitle = null
subtitle = "Vimeo: #{comment}" if comment? and comment.length > 0
subtitle ||= videoUrl
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ class Kandan.Plugins.YouTubeEmbed
template: _.template '''
<div class="youtube-preview">
<iframe width="560" height="315"
src="http://www.youtube.com/embed/<%= videoId %>"
src="//www.youtube.com/embed/<%= videoId %>"
frameborder="0" allowfullscreen>
</iframe>
<div class="name"><%= subtitle %></div>
Expand Down
2 changes: 1 addition & 1 deletion config/kandan_settings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

:public_site: true

:avatar_url: http://gravatar.com/avatar/%{hash}?s=%{size}&d=%{fallback}
:avatar_url: https://secure.gravatar.com/avatar/%{hash}?s=%{size}&d=%{fallback}
:avatar_fallback: identicon

:now_threshold: 3000
Expand Down

0 comments on commit 52a8e38

Please sign in to comment.