Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

237
Vistas
Why is navigator.onLine giving me the correct value on Chrome and Firefox, but fails on Edge and Opera?

I have a react component that does this once it is mounted:

const internetConnectivity = navigator.onLine;

This is how I tested it - I mount the component while having wi-fi, then I go back, turn off my wi-fi and mount the component again. The functionality works fine on Chrome and Firefox because internetConnectivity is true when the wi-fi is turned on, and false when it is off.

Unfortunately, on Edge and Opera internetConnectivity is true even after I've turned off the wi-fi. I checked that navigaor.onLine is supported by all 4 browsers, so something else is up with it.

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda