Fransgenre/administrans

ublock origin blank page on localhost

entropyqueen opened this issue · 2 comments

ublock origin blank page on localhost
Ugarz commented

Yes I get this behaviour too!
Do you know what It is required to do to go through the filter, without updating the filter list manually?
I guess Plausible is kinda blocked my ublock in the client.
plausible

This is the code

import Plausible from "/node_modules/.vite/deps/plausible-tracker.js?v=ae150f96"

export default {
  install: (app, options) => {
    if (options.disabled) {
      app.provide('plausible', {
        trackEvent: (name, data) => {
          console.log('[Plausible] Disabled, would send', name, data)
        }
      })
      return
    }
    const plausible = (Plausible.default || Plausible)(options)

    app.provide('plausible', plausible)
  }
}

I looked around for a bit, it appears that when Plausible is blocked on localhost, that crashes the app somehow.

It seems similar to this issue: vitejs/vite#4797

I'm not sure we can catch the error?

Since it affects only localhost, I think we may just want to tell ppl to deactivate the adblocker for localhost..?