MCPcopy Index your code
hub / github.com/philc/vimium / createRepeatCommand

Function createRepeatCommand

background_scripts/main.js:198–208  ·  view source on GitHub ↗
(command)

Source from the content-addressed store, hash-verified

196}
197
198function createRepeatCommand(command) {
199 return async function (request) {
200 let i = request.count - 1;
201 const r = Object.assign({}, request);
202 delete r.count;
203 while (i >= 0) {
204 i--;
205 await command(r);
206 }
207 };
208}
209
210function nextZoomLevel(currentZoom, steps) {
211 // Chrome's default zoom levels.

Callers 1

main.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected