mirror of
https://github.com/vitorpamplona/Nostryfied.git
synced 2025-06-06 18:31:07 +00:00
Fixes loading from file
This commit is contained in:
parent
3226ee6af7
commit
cb14cdf67e
@ -106,7 +106,7 @@ if (window.nostr) {
|
||||
const justBroadcast = async (fileName) => {
|
||||
const reader = new FileReader();
|
||||
reader.addEventListener('load', (event) => {
|
||||
var data = JSON.parse(event.target.result.substring(13))
|
||||
var data = JSON.parse(event.target.result)
|
||||
broadcast(data)
|
||||
});
|
||||
reader.readAsText(fileName)
|
||||
|
Loading…
x
Reference in New Issue
Block a user