-
-
Save TM818/a6b1332938cca1219caa428561d9c327 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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