Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

206
Visualizações
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 à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda