mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
DEV: removes one deprecation with app-events:main
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user