Skip to content

Build your personal knowledge base with Trilium Notes

Add web app manifest (#1174)

Jody3e89855aa385
diff --git a/src/public/manifest.webmanifest b/src/public/manifest.webmanifest
new file mode 100644
index 0000000000..38c0090450
--- /dev/null
+++ b/src/public/manifest.webmanifest
@@ -0,0 +1,14 @@
+{
+ "name": "Trilium",
+ "short_name": "Trilium",
+ "theme_color": "DarkGray",
+ "background_color": "DarkGray",
+ "display": "standalone",
+ "scope": "/",
+ "start_url": "/",
+ "icons": [{
+ "src": "images/app-icons/ios/apple-touch-icon.png",
+ "sizes": "180x180",
+ "type": "image/png"
+ }]
+}
diff --git a/src/views/mobile.ejs b/src/views/mobile.ejs
index 74d440fffd..2c0ebbeff6 100644
--- a/src/views/mobile.ejs
+++ b/src/views/mobile.ejs
@@ -5,7 +5,7 @@
<link rel="shortcut icon" href="favicon.ico">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<title>Trilium Notes</title>
- <link rel="apple-touch-icon" sizes="180x180" href="images/app-icons/ios/apple-touch-icon.png">
+ <link rel="manifest" href="manifest.webmanifest">
<style>
.lds-roller {
@@ -140,4 +140,4 @@
<link rel="stylesheet" type="text/css" href="libraries/boxicons/css/boxicons.min.css">
</body>
-</html>
\ No newline at end of file
+</html>