Skip to content
This repository was archived by the owner on Sep 13, 2024. It is now read-only.

Commit b857d51

Browse files
committed
Merge branch 'master' of https://github.com/Madff386/custom-electron-titlebar into Madff386-master
2 parents d821dc4 + da63554 commit b857d51

File tree

6 files changed

+2084
-2200
lines changed

6 files changed

+2084
-2200
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ This project is a typescript library for electron that allows you to configure a
1313
![Screenshot 3](screenshots/cet-003.jpg)
1414
<br><br>
1515

16-
# 📦 Intalling
16+
# 📦 Installing
1717
You can install this package with `npm`.
1818
```sh
1919
npm install custom-electron-titlebar

example/main.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ const createWindow = () => {
1414
titleBarStyle: 'hidden',
1515
//frame: false, // needed if process.versions.electron < 14
1616
webPreferences: {
17+
sandbox: false,
1718
preload: path.join(__dirname, 'preload.js')
1819
}
1920
});
@@ -25,7 +26,7 @@ const createWindow = () => {
2526
mainWindow.loadFile('index.html');
2627

2728
// Open the DevTools.
28-
// mainWindow.webContents.openDevTools()
29+
mainWindow.webContents.openDevTools()
2930

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

0 commit comments

Comments
 (0)