DEV: removes one deprecation with app-events:main

This commit is contained in:
Joffrey JAFFEUX 2019-10-16 10:50:43 +02:00 committed by GitHub
parent 5a543f8abd
commit 02250bd91f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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) {