Skip to content

Commit

Permalink
Use $(document).ready instead of $(document).on("ready") (deprecated …
Browse files Browse the repository at this point in the history
…in jQuery 1.8 and removed in jQuery 3.0) (#6832)
  • Loading branch information
ryanfb authored Aug 7, 2024
1 parent 519dc97 commit ac2e231
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/assets/javascripts/hyrax/analytics_events.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ if (typeof Turbolinks !== 'undefined') {
setupTracking()
})
} else {
$(document).on('ready', function() {
$(document).ready(function() {
setupTracking()
})
}
Expand Down

0 comments on commit ac2e231

Please sign in to comment.