mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-08-05 03:52:14 +00:00
strange hack on google apps where http:// gets us around this issue:
http://goo.gl/CWGeD (will document soon)
This commit is contained in:
parent
92a6b44c82
commit
9f26cb6c57
1 changed files with 2 additions and 2 deletions
|
|
@ -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}"
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue