Skip to content

Instantly share code, notes, and snippets.

@jonasmusall
Created February 18, 2022 12:45
Show Gist options
  • Save jonasmusall/aa0116672e17962f00c62f8c96db2ec1 to your computer and use it in GitHub Desktop.
Save jonasmusall/aa0116672e17962f00c62f8c96db2ec1 to your computer and use it in GitHub Desktop.
electron/electron [Bug]: Frameless window has sharp corners on Win11 when not resizable
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta http-equiv="Content-Security-Policy" content="default-src 'self'; script-src 'self'">
<title>Hello World!</title>
</head>
<body>
<h1>Hello World!</h1>
</body>
</html>
const {app, BrowserWindow} = require('electron');
app.whenReady().then(() => {
const window = new BrowserWindow({
width: 800,
height: 600,
resizable: false,
frame: false
});
window.loadFile('index.html');
});
{
"name": "venomous-reflection-handle-1drbd",
"productName": "venomous-reflection-handle-1drbd",
"description": "My Electron application description",
"keywords": [],
"main": "./main.js",
"version": "1.0.0",
"author": "Jonas",
"scripts": {
"start": "electron ."
},
"dependencies": {},
"devDependencies": {
"electron": "17.0.1"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment