Skip to content

Commit

Permalink
Cleared project structure
Browse files Browse the repository at this point in the history
  • Loading branch information
itsjustaplant committed Dec 8, 2020
1 parent 2b63964 commit 08dff71
Show file tree
Hide file tree
Showing 7 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
.AppleDouble
.LSOverride

# Icon must end with two \r
Icon
# icon must end with two \r
icon


# Thumbnails
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Binary file added icon/spofly_512x512.icns
Binary file not shown.
5 changes: 2 additions & 3 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ const {app, BrowserWindow} = require('electron') // http://electronjs.org/docs/a
const path = require('path') // https://nodejs.org/api/path.html
const url = require('url') // https://nodejs.org/api/url.html


let window = null

// Wait until the app is ready
Expand All @@ -19,6 +18,7 @@ app.once('ready', () => {
minHeight:800,
show: false,
frame: false,
icon: __dirname + "/icon/spofly_512x512.icns",
// Don't allow the window to be resized.
resizable: true,
webPreferences: {
Expand All @@ -30,14 +30,13 @@ app.once('ready', () => {

// Load a URL in the window to the local index.html path
window.loadURL(url.format({
pathname: path.join(__dirname, 'home.html'),
pathname: path.join(__dirname, './app/app.html'),
protocol: 'file:',
slashes: true
}))

// Show window when page is ready
window.once('ready-to-show', () => {
window.show()

})
})

0 comments on commit 08dff71

Please sign in to comment.