strange hack on google apps where http:// gets us around this issue:

http://goo.gl/CWGeD (will document soon)
This commit is contained in:
Tyler Renelle 2013-02-16 16:14:55 -05:00
parent 92a6b44c82
commit 9f26cb6c57

View file

@ -26,7 +26,7 @@ module.exports.viewHelpers = (view) ->
parseInt(a) % parseInt(b) == 0
view.fn "encodeiCalLink", (uid, apiToken) ->
loc = window?.location.origin or process.env.BASE_URL
encodeURIComponent "#{loc}/v1/users/#{uid}/calendar.ics?apiToken=#{apiToken}"
loc = window?.location.host or process.env.BASE_URL
encodeURIComponent "http://#{loc}/v1/users/#{uid}/calendar.ics?apiToken=#{apiToken}"