FIX: A screen-track/appEvents regression in #14929 (#14943)

FIX: A screen-track/appEvents regression in #14929 (#14943)

diff --git a/app/assets/javascripts/discourse/app/pre-initializers/inject-discourse-objects.js b/app/assets/javascripts/discourse/app/pre-initializers/inject-discourse-objects.js
index a34b2cf..576fbc5 100644
--- a/app/assets/javascripts/discourse/app/pre-initializers/inject-discourse-objects.js
+++ b/app/assets/javascripts/discourse/app/pre-initializers/inject-discourse-objects.js
@@ -75,7 +75,7 @@ export default {
       siteSettings,
       session,
       currentUser,
-      app.appEvents
+      container.lookup("service:app-events")
     );
     app.register("service:screen-track", screenTrack, { instantiate: false });
 

GitHub sha: 2bd2d0d4742f574ae1bba1358f8986afd2bbbb07

This commit appears in #14943 which was approved by jjaffeux. It was merged by CvX.