Skip to content

Commit 3a5bac3

Browse files
committed
Added refresh on window resize
1 parent 1e44609 commit 3a5bac3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

script.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -292,6 +292,10 @@ document.addEventListener('DOMContentLoaded', function() {
292292
frame();
293293
});
294294

295+
window.addEventListener('resize', function() {
296+
window.location.reload();
297+
}, true);
298+
295299

296300
/**
297301
* Some old util I use at times

0 commit comments

Comments
 (0)