mirror of
https://github.com/discourse/discourse.git
synced 2024-11-24 21:35:48 +08:00
13 lines
382 B
JavaScript
13 lines
382 B
JavaScript
export default Ember.View.extend({
|
|
_disableCustomStylesheets: function() {
|
|
if (this.session.get("disableCustomCSS")) {
|
|
$("link.custom-css").attr("rel", "");
|
|
this.session.set("disableCustomCSS", false);
|
|
}
|
|
}.on("willInsertElement"),
|
|
|
|
_enableCustomStylesheets: function() {
|
|
$("link.custom-css").attr("rel", "stylesheet");
|
|
}.on("willDestroyElement")
|
|
});
|