PABLOF7z on Nostr: I find `window.nostr` not available very very often, basically a nostr webapp must ...
I find `window.nostr` not available very very often, basically a nostr webapp must always handle retrying things until window.nostr becomes available. In fact, NDK's NIP07 signer builds this in; but what this NIP proposes is far cleaner.
I'd pose that having a queue is even better for UX, instead of showing a bunch of prompts you can ask all of them at the same time.
Published at
2024-04-18 10:01:51Event JSON
{
"id": "901019ab08637d0e8d02f93e5ecd02eb88bfa57a7671a52335624f45fa717a92",
"pubkey": "fa984bd7dbb282f07e16e7ae87b26a2a7b9b90b7246a44771f0cf5ae58018f52",
"created_at": 1713427311,
"kind": 1,
"tags": [
[
"e",
"5c4752d92b8ef77f8d3e0f3ac1b4768b38950a87bbee241a8de75065aa1b7f85",
"",
"root"
],
[
"p",
"fa984bd7dbb282f07e16e7ae87b26a2a7b9b90b7246a44771f0cf5ae58018f52"
],
[
"e",
"f4ab88f62c03fc99bd3378be022399260cf1125ab9a2a84f336223e3f6c6504f",
"wss://bostr.online",
"reply"
],
[
"p",
"330fb1431ff9d8c250706bbcdc016d5495a3f744e047a408173e92ae7ee42dac"
],
[
"client",
"highlighter",
"31990:73c6bb92440a9344279f7a36aa3de1710c9198b1e9e8a394cd13e0dd5c994c63:1704502265408"
]
],
"content": "\nI find `window.nostr` not available very very often, basically a nostr webapp must always handle retrying things until window.nostr becomes available. In fact, NDK's NIP07 signer builds this in; but what this NIP proposes is far cleaner.\n\nI'd pose that having a queue is even better for UX, instead of showing a bunch of prompts you can ask all of them at the same time.\n",
"sig": "2e643e8cfb411b8a0d46868c24cacf12b3c510806f2e22176b09832b048fa163b0043ac2cad6ed7f7d417ccb71034c8367f69d4250a583704b0950cc3e19fcc7"
}