REFACTOR: Remove `Discourse.SiteSettings` from static route builder

This commit is contained in:
Robin Ward 2020-07-22 11:50:04 -04:00
parent 0bf28e418f
commit 94419d0176
1 changed files with 2 additions and 2 deletions

View File

@ -17,9 +17,9 @@ export default function(page) {
beforeModel(transition) { beforeModel(transition) {
const configKey = configs[page]; const configKey = configs[page];
if (configKey && Discourse.SiteSettings[configKey].length > 0) { if (configKey && this.siteSettings[configKey].length > 0) {
transition.abort(); transition.abort();
DiscourseURL.redirectTo(Discourse.SiteSettings[configKey]); DiscourseURL.redirectTo(this.siteSettings[configKey]);
} }
}, },