REFACTOR: Remove Discourse.HighlightJSPath from globals

Instead we use the session, and pass that along where necessary.
This commit is contained in:
Robin Ward
2020-08-17 15:44:39 -04:00
parent 3745f2bb86
commit 5b2c306bb8
7 changed files with 16 additions and 9 deletions
+1 -1
View File
@@ -313,7 +313,7 @@ const Theme = RestModel.extend({
}
);
// TODO: Models shouldn't be updating the DOM
highlightSyntax(undefined, this.siteSettings);
highlightSyntax(undefined, this.siteSettings, this.session);
} else {
return this.save({ remote_update: true }).then(() =>
this.set("changed", false)