What is Nostr?
hzrd149 /
npub1ye5…knpr
2024-05-18 16:44:03

hzrd149 on Nostr: Added another helper method to "blossom-client-sdk` ...

Added another helper method to "blossom-client-sdk` https://github.com/hzrd149/blossom-client-sdk/blob/master/src/image.ts#L66

"handleBrokenImages" can be used to watch the whole web page and handle any broken images. when it finds one it tries to find the data-pubkey attribute on the image (or parent element) and then repair the image using the users fallback blossom servers

You can see an example of it working here:
https://media-server.slidestr.net/68f8b000316625d770788135ee94966df01dae50a7db11e4acc8ee7f1efc4ccf.html
Author Public Key
npub1ye5ptcxfyyxl5vjvdjar2ua3f0hynkjzpx552mu5snj3qmx5pzjscpknpr