mirror of
https://github.com/FrankerFaceZ/FrankerFaceZ.git
synced 2025-07-29 05:58:30 +00:00
4.9.8
* Fixed: The setting to hide the bits leaderboard at the top of chat. * Fixed: Bug where disabling a module would leave its state as enabled. * Changed: The FFZ Control Center button in the navigation bar will now indicate when add-ons have been loaded from a local development server.
This commit is contained in:
parent
6399a3d97d
commit
5ad0e94a0f
5 changed files with 27 additions and 7 deletions
|
@ -25,6 +25,7 @@ export default class AddonManager extends Module {
|
|||
this.inject('settings');
|
||||
this.inject('i18n');
|
||||
|
||||
this.has_dev = false;
|
||||
this.reload_required = false;
|
||||
this.addons = {};
|
||||
this.enabled_addons = [];
|
||||
|
@ -126,11 +127,14 @@ export default class AddonManager extends Module {
|
|||
for(const addon of cdn_data )
|
||||
this.addAddon(addon, false);
|
||||
|
||||
if ( Array.isArray(local_data) )
|
||||
if ( Array.isArray(local_data) ) {
|
||||
this.has_dev = true;
|
||||
for(const addon of local_data)
|
||||
this.addAddon(addon, true);
|
||||
}
|
||||
|
||||
this.rebuildAddonSearch();
|
||||
this.emit(':data-loaded');
|
||||
}
|
||||
|
||||
addAddon(addon, is_dev = false) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue