mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
DEV: Remove unused disabled_plugins checks (#13144)
We now bundle Javascript for each theme/plugin separately, and only ship bundles for enabled plugins to the client. Therefore, these disabled_plugins checks are now redundant, and can be removed.
This commit is contained in:
@@ -1,10 +1,4 @@
|
||||
export default function () {
|
||||
const { disabled_plugins = [] } = this.site;
|
||||
|
||||
if (disabled_plugins.indexOf("styleguide") !== -1) {
|
||||
return;
|
||||
}
|
||||
|
||||
this.route("styleguide", function () {
|
||||
this.route("show", { path: ":category/:section" });
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user