Skip to content

Instantly share code, notes, and snippets.

@tomasmi
tomasmi / main.js
Created May 4, 2023 12:25
getNormalBounds() for transparent window after maximize/minimize does not return last bounds
// Modules to control application life and create native browser window
const { app, BrowserWindow } = require('electron')
const path = require('path')
function createWindow () {
// Create the browser window.
const mainWindow = new BrowserWindow({
width: 800,
height: 600,
transparent: true,