How to use the electron-util.runJS function in electron-util

To help you get started, we’ve selected a few electron-util examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github atomiclabs / hyperdex / app / menu.js View on Github external
async click(menuItem, win) {
					await runJS('console.log(await _swapDB.getSwaps())', win);
				},
			},
github atomiclabs / hyperdex / app / menu.js View on Github external
async click(menuItem, win) {
					await runJS('_swapDB.destroy()', win);
					app.relaunch();
					app.quit();
				},
			},
github atomiclabs / hyperdex / app / menu.js View on Github external
async click(menuItem, win) {
					await runJS('UNSTATED.logState()', win);
				},
			},
github atomiclabs / hyperdex / app / menu.js View on Github external
async click(menuItem, win) {
					await runJS('UNSTATED.logStateChanges = !UNSTATED.logStateChanges', win);
				},
			},
github atomiclabs / hyperdex / app / menu.js View on Github external
async click(menuItem, win) {
					const swaps = await runJS('_swapDB.getSwaps()', win);
					clipboard.writeText(JSON.stringify(swaps, null, '\t'));
				},
			},