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