From 623512c2b5bc1663cd3cfc5f72d01ce0782405b7 Mon Sep 17 00:00:00 2001
From: Bruno Windels <brunow@element.io>
Date: Tue, 2 Feb 2021 18:19:45 +0100
Subject: [PATCH] add noscript

---
 css/main.css | 5 +++++
 index.html   | 4 ++++
 2 files changed, 9 insertions(+)

diff --git a/css/main.css b/css/main.css
index 70a7b16..f953250 100644
--- a/css/main.css
+++ b/css/main.css
@@ -54,6 +54,11 @@ body {
     margin: 0;
 }
 
+noscript {
+    display: block;
+    padding: 20px;
+}
+
 p { line-height: 150%; }
 a { text-decoration: none; }
 
diff --git a/index.html b/index.html
index c4caf02..f288490 100644
--- a/index.html
+++ b/index.html
@@ -12,5 +12,9 @@
 		import {main} from "./src/main.js";
 		main(document.body);
 	</script>
+    <noscript>
+        <h1>Please enable javascript</h1>
+        <p>Matrix.to preserves your privacy by only processing which rooms and people you view on the client side. For this to work, it needs javascript.</p>
+    </noscript>
 </body>
 </html>
-- 
GitLab