Add protocol handlers to manifest

This commit is contained in:
Jonathan Staab 2023-05-21 14:24:46 -07:00
parent a05117a5a8
commit 1e7d386562
4 changed files with 6 additions and 4 deletions

View File

@ -1,7 +1,5 @@
# Current
- [ ] Combine search and scan
- [ ] Fix white screen on cold scan
- [ ] Relay reviews
- New kind, d as url? Combine with labeling?
- Show reviews in relay detail rather than events. Warn about events tab

View File

@ -13,6 +13,6 @@
</script>
<Content size="lg">
<QRCode code={`nostr:${nprofile}`} />
<QRCode code={`web+nostr://${nprofile}`} />
<div class="text-center text-gray-1">Copy or scan from a nostr app to share this profile.</div>
</Content>

View File

@ -2,6 +2,7 @@
import QRCode from "qrcode"
import {onMount} from "svelte"
import Input from "src/partials/Input.svelte"
import Anchor from "src/partials/Anchor.svelte"
import {copyToClipboard} from "src/util/html"
import {toast} from "src/partials/state"
@ -21,7 +22,9 @@
<div
class="m-auto flex max-w-sm flex-col gap-4 rounded border border-solid border-gray-6 bg-gray-8 p-4">
<canvas class="m-auto rounded" bind:this={canvas} />
<Anchor external href={code}>
<canvas class="m-auto rounded" bind:this={canvas} />
</Anchor>
<Input value={code}>
<button slot="after" class="fa fa-copy" on:click={copy} />
</Input>

View File

@ -31,6 +31,7 @@ export default defineConfig({
short_name: process.env.VITE_APP_NAME,
description: "Nostr, your way.",
theme_color: "#EB5E28",
protocol_handlers: [{protocol: "web+nostr", url: "/%s"}],
icons: [
{type: "image/png", sizes: "192x192", src: "/images/favicon/android-icon-192x192.png"},
{type: "image/png", sizes: "512x512", src: "/images/favicon/android-icon-512x512.png"},