mirror of
https://github.com/discourse/discourse.git
synced 2024-12-03 09:23:43 +08:00
5b2c306bb8
Instead we use the session, and pass that along where necessary.
12 lines
345 B
JavaScript
12 lines
345 B
JavaScript
import Component from "@ember/component";
|
|
import { on, observes } from "discourse-common/utils/decorators";
|
|
import highlightSyntax from "discourse/lib/highlight-syntax";
|
|
|
|
export default Component.extend({
|
|
@on("didInsertElement")
|
|
@observes("code")
|
|
_refresh() {
|
|
highlightSyntax($(this.element), this.siteSettings, this.session);
|
|
}
|
|
});
|