SamSamskies / nostr-zap

Zap any Nostr npub or note from anywhere.
MIT License
78 stars 14 forks source link

cdn import broke at 1.0.0 #26

Open dskvr opened 2 months ago

dskvr commented 2 months ago

Starting at v1.0.0 cnd script (unpkg) starts throwing:

Uncaught TypeError: Cannot read properties of null (reading 'appendChild')
    at $ba417727cf57ac1f$export$1ab5838465dbd10a (view.js:668:17)
    at index.js:3:1

last working version is 0.22.0

<script src="https://cdn.jsdelivr.net/npm/nostr-zap@0.22.0"></script>
SamSamskies commented 2 months ago

Can you provide any more details? A Code Sandbox that reproduces the issue would be awesome. I've been using it on my apps and have not experienced this. For example, https://notazap.vercel.app is running v.1.1.0 from the CDN.

https://github.com/SamSamskies/notazap.lol/blob/172ec5a95a04b7a6460c8e8ff74c75f1e91591b6/public/initScript.js#L73

SamSamskies commented 2 months ago

What browser are you using?