From 3d9f8ed9f9c088ce2495753a05380ab001a65362 Mon Sep 17 00:00:00 2001
From: Dessalines <tyhou13@gmx.com>
Date: Tue, 15 Sep 2020 10:55:38 -0500
Subject: [PATCH] Adding some logging.

---
 src/shared/components/app.tsx | 22 ++++++++++++----------
 src/shared/env.ts             |  3 +++
 2 files changed, 15 insertions(+), 10 deletions(-)

diff --git a/src/shared/components/app.tsx b/src/shared/components/app.tsx
index 9d72b01..53d5c15 100644
--- a/src/shared/components/app.tsx
+++ b/src/shared/components/app.tsx
@@ -24,16 +24,18 @@ export class App extends Component<AppProps, any> {
       <>
         <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>
diff --git a/src/shared/env.ts b/src/shared/env.ts
index 9775286..073e8e5 100644
--- a/src/shared/env.ts
+++ b/src/shared/env.ts
@@ -26,6 +26,9 @@ export const wsUri = `ws${secure}://${host}/api/v1/ws`;
 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) {
-- 
2.44.1