Skip to content

Instantly share code, notes, and snippets.

@mxmou

mxmou/index.html Secret

Created February 19, 2022 08:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mxmou/cb865ea440a2bbbd21673fa40cf39bb4 to your computer and use it in GitHub Desktop.
Save mxmou/cb865ea440a2bbbd21673fa40cf39bb4 to your computer and use it in GitHub Desktop.
Missing window animation example
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<title>Hello World!</title>
<style>
body {
margin: 0;
}
h1 {
margin: 0;
padding: 8px;
-webkit-app-region: drag;
}
</style>
</head>
<body>
<h1>Title</h1>
</body>
</html>
const {app, BrowserWindow} = require("electron");
app.whenReady().then(() => {
const mainWindow = new BrowserWindow({
width: 800,
height: 600,
frame: false,
});
mainWindow.loadFile("index.html");
});
{
"name": "easy-boundary-obey-o1imx",
"productName": "easy-boundary-obey-o1imx",
"description": "My Electron application description",
"keywords": [],
"main": "./main.js",
"version": "1.0.0",
"author": "qwxyp",
"scripts": {
"start": "electron ."
},
"dependencies": {},
"devDependencies": {
"electron": "17.0.1"
}
}
@arslan-raza-143
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment