Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

228
Views
¿Por qué navigator.onLine me da el valor correcto en Chrome y Firefox, pero falla en Edge y Opera?

Tengo un componente de reacción que hace esto una vez que está montado:

 const internetConnectivity = navigator.onLine;

Así es como lo probé: monto el componente mientras tengo wi-fi, luego vuelvo, apago mi wi-fi y vuelvo a montar el componente. La funcionalidad funciona bien en Chrome y Firefox porque internetConnectivity es true cuando el wi-fi está encendido y false cuando está apagado.

Desafortunadamente, en Edge y Opera internetConnectivity es true incluso después de haber apagado el wi-fi. Verifiqué que navigaor.onLine es compatible con los 4 navegadores, por lo que hay algo más.

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!