kopia lustrzana https://gitlab.com/soapbox-pub/soapbox
Add meta tag for iOS banner
rodzic
3ecd7c3961
commit
7e42679478
|
@ -86,6 +86,7 @@ const mapStateToProps = (state) => {
|
||||||
locale: validLocale(locale) ? locale : 'en',
|
locale: validLocale(locale) ? locale : 'en',
|
||||||
themeCss: generateThemeCss(soapboxConfig),
|
themeCss: generateThemeCss(soapboxConfig),
|
||||||
brandColor: soapboxConfig.get('brandColor'),
|
brandColor: soapboxConfig.get('brandColor'),
|
||||||
|
appleAppId: soapboxConfig.get('appleAppId'),
|
||||||
themeMode: settings.get('themeMode'),
|
themeMode: settings.get('themeMode'),
|
||||||
singleUserMode,
|
singleUserMode,
|
||||||
};
|
};
|
||||||
|
@ -108,6 +109,7 @@ class SoapboxMount extends React.PureComponent {
|
||||||
themeCss: PropTypes.string,
|
themeCss: PropTypes.string,
|
||||||
themeMode: PropTypes.string,
|
themeMode: PropTypes.string,
|
||||||
brandColor: PropTypes.string,
|
brandColor: PropTypes.string,
|
||||||
|
appleAppId: PropTypes.string,
|
||||||
dispatch: PropTypes.func,
|
dispatch: PropTypes.func,
|
||||||
singleUserMode: PropTypes.bool,
|
singleUserMode: PropTypes.bool,
|
||||||
};
|
};
|
||||||
|
@ -171,6 +173,10 @@ class SoapboxMount extends React.PureComponent {
|
||||||
<body className={bodyClass} />
|
<body className={bodyClass} />
|
||||||
{themeCss && <style id='theme' type='text/css'>{`:root{${themeCss}}`}</style>}
|
{themeCss && <style id='theme' type='text/css'>{`:root{${themeCss}}`}</style>}
|
||||||
<meta name='theme-color' content={this.props.brandColor} />
|
<meta name='theme-color' content={this.props.brandColor} />
|
||||||
|
|
||||||
|
{this.props.appleAppId && (
|
||||||
|
<meta name='apple-itunes-app' content={`app-id=${this.props.appleAppId}`} />
|
||||||
|
)}
|
||||||
</Helmet>
|
</Helmet>
|
||||||
|
|
||||||
<ErrorBoundary>
|
<ErrorBoundary>
|
||||||
|
|
|
@ -75,6 +75,7 @@ export const CryptoAddressRecord = ImmutableRecord({
|
||||||
});
|
});
|
||||||
|
|
||||||
export const SoapboxConfigRecord = ImmutableRecord({
|
export const SoapboxConfigRecord = ImmutableRecord({
|
||||||
|
appleAppId: null,
|
||||||
logo: '',
|
logo: '',
|
||||||
banner: '',
|
banner: '',
|
||||||
brandColor: '', // Empty
|
brandColor: '', // Empty
|
||||||
|
|
Ładowanie…
Reference in New Issue