MCPcopy Index your code
hub / github.com/darkreader/darkreader / getShortcuts

Method getShortcuts

src/background/extension.ts:391–394  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

389 }
390
391 private static async getShortcuts() {
392 const commands = await getCommands();
393 return commands.reduce((map, cmd) => Object.assign(map, {[cmd.name!]: cmd.shortcut}), {} as Shortcuts);
394 }
395
396 static async collectData(): Promise<ExtensionData> {
397 await Extension.loadData();

Callers 1

collectDataMethod · 0.80

Calls 1

getCommandsFunction · 0.90

Tested by

no test coverage detected