diff --git a/src/pages/index.astro b/src/pages/index.astro index 35577a8..d4a40a8 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -188,14 +188,6 @@ import Base from "../layouts/Base.astro"; load_dong.audio.play(); } - // if ("LaunchParams" in window && 'launchQueue' in window && 'files' in window.LaunchParams.prototype) { - // window.launchQueue.setConsumer((launchParams) => { - // if (launchParams.files && launchParams.files.length) { - // handleFile(launchParams.files[0]); - // } - // }); - // } - if ("launchQueue" in window && "LaunchParams" in window) { (window as any).launchQueue.setConsumer( async (launchParams: { files: any[] }) => { diff --git a/src/pages/manifest.json.ts b/src/pages/manifest.json.ts index 11b1108..d2d1a89 100644 --- a/src/pages/manifest.json.ts +++ b/src/pages/manifest.json.ts @@ -16,7 +16,6 @@ export const GET: APIRoute = async ({ params, request }) => { JSON.stringify({ name: "Dong Web", short_name: "Dong", - // icons generated by https://www.pwabuilder.com/imageGenerator from "logo.svg" icons: [ { src: "windows11/SmallTile.scale-100.png", @@ -474,15 +473,24 @@ export const GET: APIRoute = async ({ params, request }) => { { action: "/", accept: { - "application/prs.vielle.dong": [".dong"], - } - } - ] - }), - { - headers: { - "Content-Type": "application/json", - }, - } + "application/prs.vielle.dong": [".dong"], + }, + }, + ], + theme_color: "#f80085", + background_color: "#1a0d26", + id: "dev.vielle.dong", + description: "A PWA to read and create .dong files", + dir: "ltr", + lang: "en", + orientation: "portrait-primary", + display_override: [ + "standalone", + "minimal-ui", + "browser", + "window-controls-overlay", + ], + categories: ["games", "music", "photo", "utilities"], + }) ); };