mirror of
https://github.com/discourse/discourse.git
synced 2025-02-18 02:02:44 +08:00
FIX: disable custom stylesheets in /admin
This commit is contained in:
parent
82157418eb
commit
7e1651a36e
|
@ -5,5 +5,15 @@ Discourse.AdminRoute = Discourse.Route.extend({
|
|||
|
||||
titleToken: function() {
|
||||
return I18n.t('admin_title');
|
||||
},
|
||||
|
||||
activate: function() {
|
||||
this._super();
|
||||
$("link.custom-css").attr("rel", "");
|
||||
},
|
||||
|
||||
deactivate: function() {
|
||||
this._super();
|
||||
$("link.custom-css").attr("rel", "stylesheet");
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue
Block a user