Add resize listener and reload page
This commit is contained in:
@@ -36,6 +36,14 @@ const historyManager = store => {
|
||||
}
|
||||
}
|
||||
|
||||
let reloadTimeout;
|
||||
window.addEventListener('resize', function () {
|
||||
clearTimeout(reloadTimeout);
|
||||
reloadTimeout = setTimeout(() => {
|
||||
window.location.reload();
|
||||
}, 200);
|
||||
});
|
||||
|
||||
// Grab the state from a global variable injected into the server-generated HTML
|
||||
const preloadedState = window.__TECHRADAR__;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user