googlecodelabs / your-first-pwapp

Code associated with Your First Progressive Web App codelab
https://g.co/codelabs/pwa
Apache License 2.0
638 stars 555 forks source link

How do you delete a city? #88

Closed ddeloy closed 5 years ago

ddeloy commented 7 years ago

It's apparent how to add new cities. But how do yo delete from your list?

ddeloy commented 7 years ago

Not ideal - but here's what i did: app.js // Clear local storage document.getElementById('butClear').addEventListener('click', function() { window.localStorage.clear(); window.location.reload(); });

index.html - I added this

petele commented 5 years ago

Hi!

Thanks for the feedback. I've rewritten the codelab from scratch and believe I have fixed this issue. The code has been updated, and the new guide is now live.

If you find any issues with the new codelab, please let us know!

Thanks!