Skip to content

Commit

Permalink
Version 0.2.0
Browse files Browse the repository at this point in the history
- Set default size and default position
- Remove menu bar
- Remove electron-packager dependency
- Set author to Read The Docs FR
- Add contributors (AUTHORS file)
- Make it private to prevent publishing it in package.json
- Update .gitignore
- Set license to MIT in package.json
  • Loading branch information
AntoineJT committed Jun 7, 2020
1 parent 00c97ef commit a74ca94
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 686 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
node_modules/
test-win32-x64/
dist/
3 changes: 3 additions & 0 deletions AUTHORS
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# This list will fill the contributors array. See DEFAULT VALUES section at https://docs.npmjs.com/files/package.json
shika-blyat (https://github.com/shika-blyat)
AntoineJT (https://github.com/AntoineJT/)
13 changes: 8 additions & 5 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,18 +1,21 @@
const { app, BrowserWindow } = require('electron')
const { app, BrowserWindow, screen } = require('electron')

function createWindow() {
const { width, height } = screen.getPrimaryDisplay().workAreaSize

// Cree la fenetre du navigateur.
const windowWidth = width / 5
const win = new BrowserWindow({
width: 800,
height: 600,
width: windowWidth,
height: height,
webPreferences: {
nodeIntegration: true
},
alwaysOnTop: true,
})
win.removeMenu()
win.setPosition(width - windowWidth, 0)
win.loadFile('index.html')

win = null
}

app.whenReady().then(createWindow)
Expand Down
Loading

0 comments on commit a74ca94

Please sign in to comment.