mirror of
https://github.com/discourse/discourse.git
synced 2024-12-01 16:44:33 +08:00
15 lines
342 B
JavaScript
15 lines
342 B
JavaScript
export default Ember.Component.extend({
|
|
willInsertElement() {
|
|
this._super();
|
|
if (this.session.get("disableCustomCSS")) {
|
|
$("link.custom-css").attr("rel", "");
|
|
this.session.set("disableCustomCSS", false);
|
|
}
|
|
},
|
|
|
|
willDestroyElement() {
|
|
this._super();
|
|
$("link.custom-css").attr("rel", "stylesheet");
|
|
}
|
|
});
|