We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 63c4af4 commit b80c7e4Copy full SHA for b80c7e4
1 file changed
online/meteorites-map.html
@@ -399,7 +399,9 @@
399
400
area_index: 0,
401
402
- starting_width: $(document).width()
+ starting_width: $(document).width(),
403
+
404
+ tol_resize: 15
405
406
};
407
@@ -967,7 +969,7 @@ <h2>Top ${extendedData.ranking} des classes de météorites:</h2>
967
969
968
970
let newWidth = $(document).width();
971
- if (extendedData.starting_width !== newWidth) document.location.reload(true);
972
+ if (Math.abs(extendedData.starting_width - newWidth) > extendedData.tol_resize) document.location.reload(true);
973
974
});
975
@@ -1015,3 +1017,4 @@ <h2>Top ${extendedData.ranking} des classes de météorites:</h2>
1015
1017
1016
1018
</html>
1019
1020
0 commit comments