MCPcopy
hub / github.com/zen-browser/desktop / enableMod

Method enableMod

src/zen/mods/ZenMods.mjs:638–647  ·  view source on GitHub ↗
(modId)

Source from the content-addressed store, hash-verified

636 }
637
638 async enableMod(modId) {
639 const mods = await this.getMods();
640 const mod = mods[modId];
641
642 console.warn(`[ZenMods]: Enabling mod ${mod.name}`);
643
644 mod.enabled = true;
645
646 await IOUtils.writeJSON(this.modsDataFile, mods);
647 }
648
649 async disableMod(modId) {
650 const mods = await this.getMods();

Callers 2

enableModFunction · 0.80
_buildModsListFunction · 0.80

Calls 2

getModsMethod · 0.95
warnMethod · 0.65

Tested by

no test coverage detected