DEV: Allow us to keep the deprecation with Ember CLI

This commit is contained in:
Robin Ward 2020-05-11 16:06:06 -04:00
parent 4c17ff98fa
commit 46730a2f0d

View File

@ -216,6 +216,7 @@ Site.reopenClass(Singleton, {
}
});
if (typeof Discourse !== "undefined") {
let warned = false;
Object.defineProperty(Discourse, "Site", {
get() {
@ -229,5 +230,6 @@ Object.defineProperty(Discourse, "Site", {
return Site;
}
});
}
export default Site;