Simple refresh function for nostr web pages
✓ Connect to nostr relay
✓ Refresh page on update
✓ Relay and refresh time configurable from query string
import 'https://cdn.skypack.dev/nostrefresh'
The code will check two parameters in the query string
- relay
- t
The relay is a nostr relay, t is the time in seconds, with default - 5
This project is under the MIT License. See the LICENSE file for the full license text.