diff options
Diffstat (limited to 'animism-align')
| -rw-r--r-- | animism-align/frontend/app/constants.js | 2 | ||||
| -rw-r--r-- | animism-align/frontend/app/views/viewer/sections/viewer.sections.share.js | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/animism-align/frontend/app/constants.js b/animism-align/frontend/app/constants.js index db3d666..0125ec9 100644 --- a/animism-align/frontend/app/constants.js +++ b/animism-align/frontend/app/constants.js @@ -5,6 +5,7 @@ export const ENV_DEVELOPMENT = NODE_ENV !== 'production' export const ENV_PRODUCTION = NODE_ENV === 'production' export const URLS = ENV_PRODUCTION ? { + share_url: 'https://animism.e-flux.com/episode1/', audio: '/episode1/media/animism_episode_01.mp3', eflux_logo: 'https://e-flux.com/', } : { @@ -12,6 +13,7 @@ export const URLS = ENV_PRODUCTION ? { peaks: '/static/data_store/peaks/peaks.json', text: '/static/data_store/peaks/text.txt', eflux_logo: '/', + share_url: 'https://animism.e-flux.com/', } export const WAVEFORM_SIZE = 300 diff --git a/animism-align/frontend/app/views/viewer/sections/viewer.sections.share.js b/animism-align/frontend/app/views/viewer/sections/viewer.sections.share.js index 6b3deaf..3950743 100644 --- a/animism-align/frontend/app/views/viewer/sections/viewer.sections.share.js +++ b/animism-align/frontend/app/views/viewer/sections/viewer.sections.share.js @@ -3,6 +3,7 @@ import React, { Component } from 'react' import actions from 'app/actions' import { writeToClipboard } from 'app/utils' import { Arrow } from '../nav/viewer.icons' +import { URLS } from 'app/constants' export default class ViewerSectionsShare extends Component { state = { @@ -29,7 +30,7 @@ export default class ViewerSectionsShare extends Component { if (this.state.copying) className += " copying" if (this.state.copied) className += " copied" const title = "Animism: Episode 1" - const url = "https://animism.e-flux.com/episode1/" + const url = URLS.share_url const mailtoURL = ( "mailto:?subject=" + encodeURIComponent(title) + "&body=" + encodeURIComponent("I want to share this post on e-flux: " + url + "\n\n\n") |
