mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-24 08:09:13 -05:00
12 lines
386 B
JavaScript
12 lines
386 B
JavaScript
export default Discourse.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")
|
|
});
|