Browse Source

fix: typo on google fonts url

ntorga 2 months ago
parent
commit
a6fd572697
1 changed files with 5 additions and 3 deletions
  1. 5 3
      container/nginx/user/index.html

+ 5 - 3
container/nginx/user/index.html

@@ -5,7 +5,7 @@
   <title>Welcome to Infinite OS!</title>
   <link rel="preconnect" href="https://fonts.googleapis.com" />
   <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
-  <link href="https://fonts.googleapis.com/css?family=Lato:700,regular,italic,700italic,&display=swap"
+  <link href="https://fonts.googleapis.com/css?family=Lato:700,regular,italic,700italic&display=swap"
     rel="stylesheet" />
   <style>
     html {
@@ -51,8 +51,10 @@
 <script type="text/javascript">
   const dashboardLinkUrl = `https://${window.location.hostname}:1618`;
   const dashboardLinkElement = document.getElementById('dashboard-link');
-  dashboardLinkElement.href = dashboardLinkUrl;
-  dashboardLinkElement.textContent = dashboardLinkUrl;
+  if (dashboardLinkElement) {
+    dashboardLinkElement.href = dashboardLinkUrl;
+    dashboardLinkElement.textContent = dashboardLinkUrl;
+  }
 </script>
 
 </html>