LeafletJS tiles not correct in PWA build


I’m trying to make a PWA of an app I’m developing using leafletJS and Geolocation.
When loading the leaflet tiles/map this is what I’m getting:

Any ideas on what’s happening?

This looks correct when exported to http server, but not https. I believe it’s due to something in the pwa settings build. Any ideas?

The thing is that it works perfect on iOS and android, just not as pwa