Commit 95acd5ec authored by narakorn vichianchai's avatar narakorn vichianchai

four

parent 028ab583
const {
app,
BrowserWindow
} = require('electron');
const path = require('path');
const url = require('url');
const {
app2,
Menu
} = require('electron');
let win;
function createWindow() {
win = new BrowserWindow({
width: 800,
height: 600,
icon: __dirname + '/assets/icon.ico'
// frame:false
});
win.loadURL(url.format({
pathname: path.join(__dirname, 'tpfour.html'),
protocol: 'file:',
slashes: true
}));
// win.webContents.openDevTools();
win.setMenu(null);
win.on('closed', () => {
win = null;
});
}
app.on('ready', createWindow);
app.on('window-all-closed', () => {
if (process.platform !== 'darwin') {
app.quit();
}
});
app.on('activate', () => {
if (win === null) {
createWindow();
}
});
\ No newline at end of file
This diff is collapsed.
{
"name": "project",
"version": "1.0.0",
"description": "nodejs",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "four",
"license": "ISC",
"dependencies": {
"electron-prebuilt": "^1.4.13"
},
"devDependencies": {
"electron": "^1.8.2",
"electron-packager": "^8.1.0"
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment