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

Method disableMod

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

Source from the content-addressed store, hash-verified

647 }
648
649 async disableMod(modId) {
650 const mods = await this.getMods();
651 const mod = mods[modId];
652
653 console.warn(`[ZenMods]: Disabling mod ${mod.name}`);
654
655 mod.enabled = false;
656
657 await IOUtils.writeJSON(this.modsDataFile, mods);
658 }
659
660 async updateMods(mods = undefined) {
661 if (!mods) {

Callers 2

disableModFunction · 0.80
_buildModsListFunction · 0.80

Calls 2

getModsMethod · 0.95
warnMethod · 0.65

Tested by

no test coverage detected