]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/index.html
Increase max stalled count in job queue
[github/Chocobozzz/PeerTube.git] / client / src / index.html
index a824a39e2b8b89a1cb41eb293ffa21687093d4da..f00af8bff02054ded65e4a8385222dd56465b4ea 100644 (file)
@@ -1,20 +1,22 @@
 <!DOCTYPE html>
 <html>
   <head>
-    <title>PeerTube</title>
-
     <meta charset="UTF-8">
     <meta name="viewport" content="width=device-width, initial-scale=1">
-    <meta name="description" content="PeerTube, a decentralized video streaming platform using P2P (BitTorrent) directly in the web browser" />
 
     <meta name="theme-color" content="#fff" />
 
     <!-- Web Manifest file -->
     <link rel="manifest" href="/manifest.json">
 
-    <!-- The following comment is used by the server to prerender OpenGraph and oEmbed tags -->
-    <!-- open graph and oembed tags -->
-    <!-- Do not remove it! -->
+    <!-- /!\ The following comment is used by the server to prerender some tags /!\ -->
+
+      <!-- title tag -->
+      <!-- description tag -->
+      <!-- custom css tag -->
+      <!-- open graph and oembed tags -->
+
+    <!-- /!\ Do not remove it /!\ -->
 
     <link rel="icon" type="image/png" href="/client/assets/images/favicon.png" />
 
@@ -23,7 +25,7 @@
   </head>
 
   <!-- 3. Display the application -->
-  <body>
+  <body id="custom-css">
 
     <noscript>
       <p>You are blocking Javascript, and we totally get that. However this endpoint uses Angular, so the front end is in full JavaScript and won't work without it.
       </p>
     </noscript>
 
+    <div id="incompatible-browser" class="alert alert-danger" style="display: none">
+      <p>We are sorry but it seems that PeerTube is not compatible with your web browser.</p>
+      <p>Please try with the latest version of <a href="https://www.mozilla.org" target="_blank">Mozilla Firefox</a>.</p>
+      <p>If you think this is a mistake, do not hesitate <a href="https://github.com/Chocobozzz/PeerTube/issues/new" target="_blank">to report it</a>.</p>
+    </div>
+
+    <script type="text/javascript">
+      window.onerror = function () {
+        var elem = document.getElementById('incompatible-browser')
+        if (elem.className.indexOf('browser-ok') === -1) {
+          elem.style.display = 'block'
+        }
+      }
+    </script>
+
     <my-app>
     </my-app>