diff options
| author | Rasmus Fuhse <fuhse@data-quest.de> | 2025-03-28 10:49:43 +0000 |
|---|---|---|
| committer | Rasmus Fuhse <fuhse@data-quest.de> | 2025-03-28 10:49:43 +0000 |
| commit | a648eb75b4e9dc4e6bfc2d6baa71b19328a06467 (patch) | |
| tree | 92d8f731f07a59b1f33f2df1cd6e1831a51abcc8 /resources/assets/javascripts/bootstrap/jsupdater.js | |
| parent | 7c7ea58d7d89e63b248e7a2a650023c604c0538c (diff) | |
Resolve "Unload event listeners are deprecated and will be removed."
Closes #5436
Merge request studip/studip!4076
Diffstat (limited to 'resources/assets/javascripts/bootstrap/jsupdater.js')
| -rw-r--r-- | resources/assets/javascripts/bootstrap/jsupdater.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/resources/assets/javascripts/bootstrap/jsupdater.js b/resources/assets/javascripts/bootstrap/jsupdater.js index 9fbcd0e..8434413 100644 --- a/resources/assets/javascripts/bootstrap/jsupdater.js +++ b/resources/assets/javascripts/bootstrap/jsupdater.js @@ -7,4 +7,4 @@ $(window).on('load', function() { // Try to stop js updater if window is unloaded (might not work in all // browsers) -$(window).on('unload', STUDIP.JSUpdater.stop); +$(window).on('beforeunload', STUDIP.JSUpdater.stop); |
