DEV Community

loading...

Discussion on: a Weather App with Monetization Feature

Collapse
cyberdees profile image
☞ Desigan Chinniah ☜

Quick feedback. I seem to get the same Monetization Feature Available message in both scenarios right now ie. with or without a Web Monetization provider (Coil) membership.

Are you perhaps correctly checking for 'monetizationstart'?

if (document.monetization) {
  document.monetization.addEventListener('monetizationstart', () => {
    document.getElementById('exclusive').classList.remove('hidden')
  })
}