Skip to content

Commit

Permalink
load config via SSL proxy when necessary
Browse files Browse the repository at this point in the history
  • Loading branch information
benzimmer committed Mar 22, 2018
1 parent a37a860 commit f5f6299
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/coffee/app.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,10 @@ class SubscribeButton

fetchPodcastDataFromUrl: (url) ->
request = new XMLHttpRequest()
sslPage = document.location.protocol == 'https:'
urlIsHttp = url.substr(0, 5) == 'http:'
if sslPage && urlIsHttp
url = "https://cdn.podigee.com/ssl-proxy/#{url}"
request.open('GET', url, true)

request.onload = () =>
Expand Down

0 comments on commit f5f6299

Please sign in to comment.