Skip to content

Commit

Permalink
The "unload" window event has been replaced with "pagehide" (due to "…
Browse files Browse the repository at this point in the history
…unload" being deprecated).
  • Loading branch information
William Troup committed Mar 18, 2024
1 parent a8d176a commit 9e76716
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dist/heat.js
Original file line number Diff line number Diff line change
Expand Up @@ -2141,7 +2141,7 @@
_parameter_Document.addEventListener("DOMContentLoaded", function() {
render();
});
_parameter_Window.addEventListener("unload", function() {
_parameter_Window.addEventListener("pagehide", function() {
cancelAllPullDataTimers();
});
if (!isDefined(_parameter_Window.$heat)) {
Expand Down
2 changes: 1 addition & 1 deletion dist/heat.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/heat.js
Original file line number Diff line number Diff line change
Expand Up @@ -3389,7 +3389,7 @@
render();
} );

_parameter_Window.addEventListener( "unload", function() {
_parameter_Window.addEventListener( "pagehide", function() {
cancelAllPullDataTimers();
} );

Expand Down

0 comments on commit 9e76716

Please sign in to comment.