]> Untitled Git - lemmy-ui.git/commitdiff
Adding some logging.
authorDessalines <tyhou13@gmx.com>
Tue, 15 Sep 2020 15:55:38 +0000 (10:55 -0500)
committerDessalines <tyhou13@gmx.com>
Tue, 15 Sep 2020 15:55:38 +0000 (10:55 -0500)
src/shared/components/app.tsx
src/shared/env.ts

index 9d72b0166bcf1197e54c694d71e08559684579cc..53d5c151995d465cd07fce3c1b34521afb804966 100644 (file)
@@ -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>
index 977528676f820f6af66b7caaa1f18e85ba731c53..073e8e5a6442a13d9d6eb68dfe59279974efb1e7 100644 (file)
@@ -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) {