mirror of
https://github.com/discourse/discourse.git
synced 2025-03-02 05:50:44 +08:00

This caused a CORS error when used with S3 asset storage This reverts commit d09f283e911c0847ca23372aceefc344526690d2.
12 lines
322 B
JavaScript
12 lines
322 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: function() {
|
|
highlightSyntax($(this.element));
|
|
}
|
|
});
|