Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…titlebar into Madff386-master
  • Loading branch information
AlexTorresDev committed Sep 28, 2022
2 parents d821dc4 + da63554 commit b857d51
Show file tree
Hide file tree
Showing 6 changed files with 2,084 additions and 2,200 deletions.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -13,7 +13,7 @@ This project is a typescript library for electron that allows you to configure a
![Screenshot 3](screenshots/cet-003.jpg)
<br><br>

# 📦 Intalling
# 📦 Installing
You can install this package with `npm`.
```sh
npm install custom-electron-titlebar
Expand Down
3 changes: 2 additions & 1 deletion example/main.js
Expand Up @@ -14,6 +14,7 @@ const createWindow = () => {
titleBarStyle: 'hidden',
//frame: false, // needed if process.versions.electron < 14
webPreferences: {
sandbox: false,
preload: path.join(__dirname, 'preload.js')
}
});
Expand All @@ -25,7 +26,7 @@ const createWindow = () => {
mainWindow.loadFile('index.html');

// Open the DevTools.
// mainWindow.webContents.openDevTools()
mainWindow.webContents.openDevTools()

//attach fullscreen(f11 and not 'maximized') && focus listeners
attachTitlebarToWindow(mainWindow);
Expand Down

0 comments on commit b857d51

Please sign in to comment.