21 Star 69 Fork 13

mikey.zhaopeng / ndpediter

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
main.js 865 Bytes
一键复制 编辑 原始数据 按行查看 历史
mikey.zhaopeng 提交于 2016-06-02 21:27 . aa
const {app, BrowserWindow} = require('electron');
let mainWindow;
// Quit when all windows are closed.
app.on('window-all-closed', function() {
if (process.platform != 'darwin')
app.quit();
});
// This method will be called when Electron has done everything
// initialization and ready for creating browser windows.
app.on('ready', function() {
// Create the browser window.
mainWindow = new BrowserWindow({width: 800, height: 600});
// and load the index.html of the app.
mainWindow.loadURL('file://' + __dirname + '/app/main.html');
// Emitted when the window is closed.
mainWindow.on('closed', function() {
// Dereference the window object, usually you would store windows
// in an array if your app supports multi windows, this is the time
// when you should delete the corresponding element.
mainWindow = null;
});
});
NodeJS
1
https://gitee.com/imzhpe/ndpediter.git
git@gitee.com:imzhpe/ndpediter.git
imzhpe
ndpediter
ndpediter
master

搜索帮助