interledger / web-monetization-extension

An open-source browser extension that enables Web Monetization.
Apache License 2.0
46 stars 2 forks source link

fix(background): ensure default storage is populated; fix popup crash #342

Closed sidvishnoi closed 1 week ago

sidvishnoi commented 1 week ago

Context

Fixes https://github.com/interledger/web-monetization-extension/issues/330

Changes proposed in this pull request

Race condition and an unseen check on the conditions for when we populate storage. Now, we call storage.setHostPermissionStatus only after storage.populate is called.

raducristianpopa commented 1 week ago

Extension builds preview

Name Link
Latest commit 0ee21da9d77f84f238ace0f0cb4f7ff234c4e197
Latest job logs Run #9516105755
BadgeDownload
BadgeDownload