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

211
Vistas
Pinch Zoom is not reset when location.href set to current page

I have in my chrome extension a timer for when a page has been idle a certain time it will reload and navigate to the set home page.

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

If you have pinched zoomed and the page is reloaded, the zoom level is still there IF you already are at the home page.

If you are at any other page and the location.href is set, the zoom is reset.

So, is there some way to reset the pinched zoom when reloading the same page or is this some bug in chrome?

This doesn't work as well:

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