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);