REFACTOR: Remove Discourse.HighlightJSPath from globals
Instead we use the session, and pass that along where necessary.
This commit is contained in:
@@ -5,7 +5,7 @@ import highlightSyntax from "discourse/lib/highlight-syntax";
|
||||
export default Component.extend({
|
||||
@on("didInsertElement")
|
||||
@observes("code")
|
||||
_refresh: function() {
|
||||
highlightSyntax($(this.element), this.siteSettings);
|
||||
_refresh() {
|
||||
highlightSyntax($(this.element), this.siteSettings, this.session);
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user