Paraview-Glance The need for live server

Hi,

I built a local instance of Paraview-Glance and edited the interface. Only made changes in the glance.f7a92c46baf3e424c5b4.js.

When I try to load files I see this error.

glance-external-Workbox.878508a61ecced2e9e96.js:1 Workbox service worker failed to register TypeError: Failed to register a ServiceWorker: The URL protocol of the current origin ('null') is not supported.
    at glance-external-Workbox.878508a61ecced2e9e96.js:1

If I fire up a live server, everything works and I don’t see the error.

Why do I need a live server here when I have built a local instance and I have all the necessary files available locally?

Hi,

Service workers only run over HTTPS. Ideally Glance should detect that the worker is not loaded and fall back gracefully, but if that is not the case then please open an issue on the Github issue tracker so we can track and fix this.

1 Like