Giter Club home page Giter Club logo

Comments (6)

JBBianchi avatar JBBianchi commented on July 30, 2024

Sounds like your browser doesn't support service worker. Which navigator/version do you use? (Afaik, the only one not supporting service worker is IE)

from synapse.

ketseh avatar ketseh commented on July 30, 2024

Firefox 98.x

So, this looks like cosmetic then, right?
Probably just need to handle it a bit better to prevent "errors" in the console.

from synapse.

JBBianchi avatar JBBianchi commented on July 30, 2024

The service worker registration allows the PWA capabilities. It's more a "futurproof" thing than an actual feature for now. But anyways, we'll indeed prevent the error from appearing.

from synapse.

JBBianchi avatar JBBianchi commented on July 30, 2024

@ketseh out of curiosity, were you using Private Browsing Mode when testing? Because I think FFX 98 should support service workers. Or did you serve the page from an unsafe location (http instead of https) ?

from synapse.

ketseh avatar ketseh commented on July 30, 2024

http -- yes
private mode -- no

from synapse.

JBBianchi avatar JBBianchi commented on July 30, 2024

Maybe you want to unable 'unsafe' service workers then:

Service workers only run over HTTPS, for security reasons. Having modified network requests, wide open to 
man in the middle attacks would be really bad. In Firefox, Service Worker APIs are also hidden and cannot 
be used when the user is in private browsing mode.

Note: On Firefox, for testing you can run service workers over HTTP (insecurely); simply check the 
Enable Service Workers over HTTP (when toolbox is open) option in the Firefox Devtools options/gear menu.

src: https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API#service_worker_concepts_and_usage

from synapse.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.