(file: string, config: Map<string, Accelerator>)
| 31 | ]); |
| 32 | |
| 33 | export function resetFile(file: string, config: Map<string, Accelerator>) { |
| 34 | const res = mapToObj(config); |
| 35 | res["version"] = version; |
| 36 | fs.writeFileSync(file, JSON.stringify(res, null, 4)); |
| 37 | } |
| 38 | export function resetGlobalShortcuts() { |
| 39 | resetFile(env.shortcut, defaultGlobalShortcuts); |
| 40 | } |
no test coverage detected