Adding some logging.

This commit is contained in:
Dessalines 2020-09-15 10:55:38 -05:00
parent 6016e1b2cc
commit 3d9f8ed9f9
2 changed files with 15 additions and 10 deletions

View file

@ -24,16 +24,18 @@ export class App extends Component<AppProps, any> {
<> <>
<Provider i18next={i18n}> <Provider i18next={i18n}>
<div> <div>
{this.props.site && this.props.site.site.icon && ( {this.props.site &&
<Helmet> this.props.site.site &&
<link this.props.site.site.icon && (
id="favicon" <Helmet>
rel="icon" <link
type="image/x-icon" id="favicon"
href={this.props.site.site.icon} rel="icon"
/> type="image/x-icon"
</Helmet> href={this.props.site.site.icon}
)} />
</Helmet>
)}
<Navbar site={this.props.site} /> <Navbar site={this.props.site} />
<div class="mt-4 p-0 fl-1"> <div class="mt-4 p-0 fl-1">
<Switch> <Switch>

View file

@ -26,6 +26,9 @@ export const wsUri = `ws${secure}://${host}/api/v1/ws`;
export const httpUri = `${httpBase}/api/v1`; export const httpUri = `${httpBase}/api/v1`;
export const pictrsUri = `${httpBase}/pictrs/image`; export const pictrsUri = `${httpBase}/pictrs/image`;
console.log(`httpbase: ${httpBase}`);
console.log(`wsUri: ${wsUri}`);
// This is for html tags, don't include port // This is for html tags, don't include port
const httpExternalUri = `http${secure}://${externalHost.split(':')[0]}`; const httpExternalUri = `http${secure}://${externalHost.split(':')[0]}`;
export function httpExternalPath(path: string) { export function httpExternalPath(path: string) {