reset scroll on refresh

toast
Kit Kasune 3 years ago
parent 8468c663e8
commit 3c7a672490
  1. 1
      scripts/fileview/refresh.js

@ -22,5 +22,6 @@ module.exports = (newPath) => {
let nav = document.createElement('div'); let nav = document.createElement('div');
nav.setAttribute('id', 'header-nav'); nav.setAttribute('id', 'header-nav');
document.getElementById('controls').appendChild(nav); document.getElementById('controls').appendChild(nav);
window.scrollTo(0, 0);
loadDir(newPath); loadDir(newPath);
}; };
Loading…
Cancel
Save