<>
<Provider i18next={i18n}>
<div>
- {this.props.site && this.props.site.site.icon && (
- <Helmet>
- <link
- id="favicon"
- rel="icon"
- type="image/x-icon"
- href={this.props.site.site.icon}
- />
- </Helmet>
- )}
+ {this.props.site &&
+ this.props.site.site &&
+ this.props.site.site.icon && (
+ <Helmet>
+ <link
+ id="favicon"
+ rel="icon"
+ type="image/x-icon"
+ href={this.props.site.site.icon}
+ />
+ </Helmet>
+ )}
<Navbar site={this.props.site} />
<div class="mt-4 p-0 fl-1">
<Switch>
export const httpUri = `${httpBase}/api/v1`;
export const pictrsUri = `${httpBase}/pictrs/image`;
+console.log(`httpbase: ${httpBase}`);
+console.log(`wsUri: ${wsUri}`);
+
// This is for html tags, don't include port
const httpExternalUri = `http${secure}://${externalHost.split(':')[0]}`;
export function httpExternalPath(path: string) {