Skip to content

Instantly share code, notes, and snippets.

@TM818

TM818/function Secret

Created Jan 21, 2021
Embed
What would you like to do?
const remote = require('electron').remote;
function PowerButton(props) {
let w = remote.getCurrentWindow();
w.close();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment