MCPcopy
hub / github.com/philc/vimium / syncEnabledKeysCaption

Function syncEnabledKeysCaption

pages/action.js:119–127  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

117 },
118
119 syncEnabledKeysCaption() {
120 let caption = "All";
121 const rules = ExclusionRulesEditor.getRules();
122 if (rules.length > 0) {
123 const hasBlankPassKeysRule = rules.find((r) => r.passKeys.length == 0);
124 caption = hasBlankPassKeysRule ? "No" : "Some";
125 }
126 document.querySelector("#how-many-enabled").textContent = caption;
127 },
128
129 async onSave() {
130 let rules = await Settings.get("exclusionRules");

Callers

nothing calls this directly

Calls 1

findMethod · 0.80

Tested by

no test coverage detected