diff --git a/public/manifest.json b/public/manifest.json
index 7fd003b..b13c1ec 100644
--- a/public/manifest.json
+++ b/public/manifest.json
@@ -1,5 +1,5 @@
{
- "name": "Everclone — Notes & Knowledge Base",
+ "name": "Everclone",
"short_name": "Everclone",
"description": "Self-hosted Evernote clone for rich notes, web clips, and attachments",
"id": "/",
@@ -8,7 +8,7 @@
"display": "standalone",
"background_color": "#18181b",
"theme_color": "#00a82d",
- "orientation": "any",
+ "orientation": "portrait-primary",
"categories": ["productivity", "utilities", "notes"],
"icons": [
{
@@ -62,14 +62,24 @@
"short_name": "New Note",
"description": "Create a new note in Everclone",
"url": "/?action=new-note",
- "icons": [{ "src": "/icon-192.png", "sizes": "192x192" }]
+ "icons": [
+ {
+ "src": "/icon-192.png",
+ "sizes": "192x192"
+ }
+ ]
},
{
"name": "Search Notes",
"short_name": "Search",
"description": "Search notes across your library",
"url": "/?action=search",
- "icons": [{ "src": "/icon-192.png", "sizes": "192x192" }]
+ "icons": [
+ {
+ "src": "/icon-192.png",
+ "sizes": "192x192"
+ }
+ ]
}
]
}
diff --git a/src/app/layout.tsx b/src/app/layout.tsx
index 5efbfdf..bc32c86 100644
--- a/src/app/layout.tsx
+++ b/src/app/layout.tsx
@@ -42,29 +42,58 @@ export default function RootLayout({
+
+
+
diff --git a/src/components/EvercloneWorkspace.tsx b/src/components/EvercloneWorkspace.tsx
index 11b1d19..efb10ae 100644
--- a/src/components/EvercloneWorkspace.tsx
+++ b/src/components/EvercloneWorkspace.tsx
@@ -160,6 +160,16 @@ export default function EvercloneWorkspace() {
}, []);
const handleInstallPwa = async () => {
+ if (
+ typeof window !== 'undefined' &&
+ typeof (window as unknown as { __triggerEvercloneInstall?: () => void })
+ .__triggerEvercloneInstall === 'function'
+ ) {
+ (
+ window as unknown as { __triggerEvercloneInstall: () => void }
+ ).__triggerEvercloneInstall();
+ return;
+ }
const promptEvent = window.__everclone_install_prompt;
if (promptEvent) {
try {