Add shortcut for lazy loading chunks

This commit is contained in:
Nuckyz 2024-06-01 18:39:01 -03:00
parent 78fd37a4c6
commit d8524b087c
No known key found for this signature in database
GPG key ID: 440BF8296E1C4AD9
8 changed files with 191 additions and 162 deletions

View file

@ -129,7 +129,7 @@ export const SettingsStore = new SettingsStoreClass(settings, {
if (path === "plugins" && key in plugins)
return target[key] = {
enabled: plugins[key].required ?? plugins[key].enabledByDefault ?? false
enabled: IS_REPORTER ?? plugins[key].required ?? plugins[key].enabledByDefault ?? false
};
// Since the property is not set, check if this is a plugin's setting and if so, try to resolve