We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b3bfe4a commit 63c4af4Copy full SHA for 63c4af4
1 file changed
js/app.js
@@ -4,7 +4,9 @@ var globalData = {
4
5
modalbox_size: `${Math.round($(window).width() - 8)}px`,
6
7
- starting_width: $(document).width()
+ starting_width: $(document).width(),
8
+
9
+ tol_resize: 15
10
11
};
12
@@ -14,7 +16,7 @@ $(window).on('resize', () => {
14
16
15
17
let newWidth = $(document).width();
18
- if (globalData.starting_width !== newWidth) document.location.reload(true);
19
+ if (Math.abs(globalData.starting_width - newWidth) > globalData.tol_resize) document.location.reload(true);
20
21
});
22
@@ -237,4 +239,4 @@ $(document).ready(function () {
237
239
238
240
241
-$("#copyright").html(new Date().getFullYear());
242
+$("#copyright").html(new Date().getFullYear());
0 commit comments