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

205
Views
Pinch Zoom no se restablece cuando location.href se establece en la página actual

Tengo en mi extensión de Chrome un temporizador para cuando una página ha estado inactiva durante cierto tiempo, se volverá a cargar y navegará a la página de inicio establecida.

 //Reset when been idle certain time
window.setInterval('refresh(), 30000); 
let homepage = 'https://google.com' //home page
function refresh() {
location.href = homepage;
}

Si ha pellizcado el zoom y la página se vuelve a cargar, el nivel de zoom sigue ahí SI ya está en la página de inicio.

Si se encuentra en cualquier otra página y se establece location.href, el zoom se restablece.

Entonces, ¿hay alguna forma de restablecer el zoom pellizcado al volver a cargar la misma página o se trata de un error en Chrome?

Esto no funciona tan bien:

 location.reload();
location.replace(homepage);
location.assign(homepage);
history.go(0);
almost 4 years ago · Santiago Trujillo
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!