diff options
author | ThibG <thib@sitedethib.com> | 2020-10-13 01:19:35 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-13 01:19:35 +0200 |
commit | 4c45b43cb8a3d902c130729d36d559ec9de23d3e (patch) | |
tree | ee915a79950dbad38d515a8870a30e40480bff5e /app/javascript/mastodon/components/autosuggest_emoji.js | |
parent | 53b22d247fb8500ea977774d727fe0d41950189c (diff) |
Change how CDN_HOST is passed down to make assets build reproducible (#14381)
* Change how CDN_HOST is passed down to make assets build reproducible * Change webpacker/webpack configuration to dynamically load publicPath based on meta header * Fix embedded layout missing the cdn-host meta header
Diffstat (limited to 'app/javascript/mastodon/components/autosuggest_emoji.js')
-rw-r--r-- | app/javascript/mastodon/components/autosuggest_emoji.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/app/javascript/mastodon/components/autosuggest_emoji.js b/app/javascript/mastodon/components/autosuggest_emoji.js index ce4383a60..4937e4d98 100644 --- a/app/javascript/mastodon/components/autosuggest_emoji.js +++ b/app/javascript/mastodon/components/autosuggest_emoji.js @@ -1,8 +1,7 @@ import React from 'react'; import PropTypes from 'prop-types'; import unicodeMapping from '../features/emoji/emoji_unicode_mapping_light'; - -const assetHost = process.env.CDN_HOST || ''; +import { assetHost } from 'mastodon/utils/config'; export default class AutosuggestEmoji extends React.PureComponent { |