瀏覽代碼

Clean up desktop's index.html

Initially I wanted to delete only the duplicated `<html>` opening tag,
but then decided to make it a fully valid HTML document.

Passes https://validator.w3.org/nu/#textarea check.
Christoph Grabo 3 年之前
父節點
當前提交
b64574810d
共有 1 個文件被更改,包括 12 次插入19 次删除
  1. 12 19
      packages/desktop/src/index.html

+ 12 - 19
packages/desktop/src/index.html

@@ -1,22 +1,15 @@
 <!DOCTYPE html>
 <html>
-
-<html>
-
-<head>
-    <meta name="viewport" content="width=device-width, initial-scale=1.0" charset="utf-8" />
-</head>
-
-
-<body>
-    <div id="main">
-    </div>
-</body>
-
-<script>
-    import("./index.js").then(function (module) {
-        module.main();
-    });
-</script>
-
+    <head>
+        <title>Dioxus app</title>
+        <meta name="viewport" content="width=device-width, initial-scale=1.0" />
+    </head>
+    <body>
+        <div id="main"></div>
+        <script>
+            import("./index.js").then(function (module) {
+                module.main();
+            });
+        </script>
+    </body>
 </html>