mirror of
https://github.com/discourse/discourse.git
synced 2024-11-29 01:15:00 +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");
|
|
}
|
|
});
|