Skip to content
This repository has been archived by the owner on Dec 2, 2019. It is now read-only.

Commit

Permalink
rename app
Browse files Browse the repository at this point in the history
  • Loading branch information
xwartz committed May 22, 2016
1 parent dc926ca commit b9dd533
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
Binary file modified screen.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 0 additions & 1 deletion src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
<html lang="en">
<head>
<meta charset="UTF-8">
<title>douban.fm</title>
<script>
// (function() {
// if (process.env.NODE_ENV !== 'development') {
Expand Down
8 changes: 4 additions & 4 deletions src/main.dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,23 +10,23 @@ app.on('window-all-closed', () => {

let winProps = {
width: 1000,
height: 800
height: 800,
titleBarStyle: 'hidden-inset'
}

if (process.env.NODE_ENV !== 'development') {
winProps = {
width: 800,
height: 435,
frame: true,
resizeable: false
resizeable: false,
titleBarStyle: 'hidden-inset'
}
}

app.on('ready', () => {
mainWindow = new BrowserWindow(winProps)

// mainWindow.loadURL('http://douban.fm')

mainWindow.loadURL(`file://${__dirname}/index.html`)

if (process.env.NODE_ENV === 'development') {
Expand Down

0 comments on commit b9dd533

Please sign in to comment.