DEV: removes one deprecation with app-events:main

DEV: removes one deprecation with app-events:main

diff --git a/app/assets/javascripts/discourse-common/mixins/focus-event.js.es6 b/app/assets/javascripts/discourse-common/mixins/focus-event.js.es6
index c0395b53ac..3f70e353b8 100644
--- a/app/assets/javascripts/discourse-common/mixins/focus-event.js.es6
+++ b/app/assets/javascripts/discourse-common/mixins/focus-event.js.es6
@@ -26,7 +26,7 @@ export default Ember.Mixin.create({
 
   _onChange() {
     const container = getOwner(this);
-    const appEvents = container.lookup("app-events:main");
+    const appEvents = container.lookup("service:app-events");
 
     if (document.visibilityState === "hidden") {
       if (Discourse.hasFocus) {

GitHub sha: 02250bd9

1 Like