Created
October 2, 2019 12:07
-
-
Save skullteria/b11249209dac3a9301b401d0e4fe4eb8 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Hello World!</title> | |
</head> | |
<body> | |
<p><button onclick="minimize()">test</button></p> | |
<script> | |
function minimize(){ | |
const { remote } = require('electron'); | |
remote.BrowserWindow.getFocusedWindow().minimize(); | |
} | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment