Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
async click(menuItem, win) {
await runJS('console.log(await _swapDB.getSwaps())', win);
},
},
async click(menuItem, win) {
await runJS('_swapDB.destroy()', win);
app.relaunch();
app.quit();
},
},
async click(menuItem, win) {
await runJS('UNSTATED.logState()', win);
},
},
async click(menuItem, win) {
await runJS('UNSTATED.logStateChanges = !UNSTATED.logStateChanges', win);
},
},
async click(menuItem, win) {
const swaps = await runJS('_swapDB.getSwaps()', win);
clipboard.writeText(JSON.stringify(swaps, null, '\t'));
},
},