moritzsternemann / vue-plausible

Plausible Analytics Vue.js Plugin and NuxtJS Module
MIT License
120 stars 8 forks source link

localStorage crash in anonymous mode in Chrome #25

Open radimhornicek opened 11 months ago

radimhornicek commented 11 months ago

Hi, I have a problem with this amazing plugin because it uses plausible-tracker in version 0.3.4. Do you think you can update this dependency? Because I think since version 0.3.6 plausible-tracker has localStorage access detection. The thing is, when you use incognito mode in Chrome, you can't access localStorage (unless you explicitly allow it in the settings as a user) and it throws an error in plausible-tracker -> which causes Nuxt to crash during Nuxt initialization, causing a fatal error => app crash