Skip to content
Snippets Groups Projects
Commit 3205250f authored by Rodrigo Nascimento's avatar Rodrigo Nascimento Committed by Gabriel Engel
Browse files

Fix download on electron

parent 619ce0fe
No related branches found
No related tags found
No related merge requests found
......@@ -12,6 +12,8 @@ Template.messageAttachment.helpers
if Meteor.settings.public.sandstorm or url.match /^(https?:)?\/\//i
return url
else if navigator.userAgent.indexOf('Electron') > -1
return __meteor_runtime_config__.ROOT_URL_PATH_PREFIX + url
else
return Meteor.absoluteUrl().replace(/\/$/, '') + __meteor_runtime_config__.ROOT_URL_PATH_PREFIX + url
......
......@@ -40,6 +40,8 @@ Template.uploadedFilesList.helpers
if Meteor.settings.public.sandstorm or url.match /^(https?:)?\/\//i
return url
else if navigator.userAgent.indexOf('Electron') > -1
return __meteor_runtime_config__.ROOT_URL_PATH_PREFIX + url
else
return Meteor.absoluteUrl().replace(/\/$/, '') + __meteor_runtime_config__.ROOT_URL_PATH_PREFIX + url
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment