DEV: Remove 'legacy ember' logic from discourse-root component (#17494)

This logic should no longer be triggered. The EMBER_GLIMMER_SET_COMPONENT_TEMPLATE gets removed in recent versions of Ember, which can cause it to accidently trigger and cause layout issues with some plugins/themes.
This commit is contained in:
David Taylor 2022-07-14 12:17:01 +01:00 committed by GitHub
parent 4b935b61eb
commit d52d479bd4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 6 deletions

View File

@ -2,10 +2,4 @@ import Component from "@ember/component";
let componentArgs = { tagName: "div", classNames: ["discourse-root"] };
// TODO: Once we've moved to Ember CLI completely we can remove this block
// eslint-disable-next-line no-undef
if (!Ember.FEATURES.EMBER_GLIMMER_SET_COMPONENT_TEMPLATE) {
componentArgs = { tagName: "" };
}
export default Component.extend(componentArgs);