]> Untitled Git - lemmy.git/commitdiff
Adding a noscript message. Fixes #464
authorDessalines <tyhou13@gmx.com>
Sat, 25 Jan 2020 15:19:37 +0000 (10:19 -0500)
committerDessalines <tyhou13@gmx.com>
Sat, 25 Jan 2020 15:19:37 +0000 (10:19 -0500)
ui/src/index.html

index 122783d4156e9612d9e2b03200efd28a6fee5c4f..09f13097d095c32dd7e3a30d089b52460697ee4e 100644 (file)
@@ -1,29 +1,28 @@
 <!DOCTYPE html>
 <html lang="en">
+  <head>
+    <!-- Required meta tags -->
+    <meta name="Description" content="Lemmy">
+    <meta charset="utf-8">
+    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
 
-<head>
-       <!-- Required meta tags -->
-  <meta name="Description" content="Lemmy">
-       <meta charset="utf-8">
-       <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
+    <!-- Icons -->
+    <link rel="shortcut icon" type="image/svg+xml" href="/static/assets/favicon.svg" />
+    <link rel="apple-touch-icon" href="/static/assets/apple-touch-icon.png" />
 
-  <!-- Icons -->
-       <link rel="shortcut icon" type="image/svg+xml" href="/static/assets/favicon.svg" />
-       <link rel="apple-touch-icon" href="/static/assets/apple-touch-icon.png" />
+    <!-- Styles -->
+    <link rel="stylesheet" type="text/css" href="/static/assets/css/tribute.css" />
+    <link rel="stylesheet" type="text/css" href="/static/assets/css/toastify.css" />
+    <link rel="stylesheet" type="text/css" href="/static/assets/css/themes/darkly.min.css" id="darkly" />
+    <link rel="stylesheet" type="text/css" href="/static/assets/css/main.css" />
 
-  <!-- Styles -->
-  <link rel="stylesheet" type="text/css" href="/static/assets/css/tribute.css" />
-  <link rel="stylesheet" type="text/css" href="/static/assets/css/toastify.css" />
-  <link rel="stylesheet" type="text/css" href="/static/assets/css/themes/darkly.min.css" id="darkly" />
-  <link rel="stylesheet" type="text/css" href="/static/assets/css/main.css" />
-
-  <!-- Scripts -->
-  <script async src="/static/assets/libs/sortable/sortable.min.js"></script>
-</head>
-
-<body>
-       <div id="app"></div>
-       $bundles
-</body>
+    <!-- Scripts -->
+    <script async src="/static/assets/libs/sortable/sortable.min.js"></script>
+  </head>
 
+  <body>
+    <noscript>JavaScript is required for this page.</noscript>
+    <div id="app"></div>
+    $bundles
+  </body>
 </html>