Skip to content

Commit

Permalink
fix: 增加 .gitmodules 文件
Browse files Browse the repository at this point in the history
  • Loading branch information
caijinyc committed Jan 5, 2019
1 parent ffc533c commit 02deaf0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "NeteaseCloudMusicApi"]
path = NeteaseCloudMusicApi
url = https://github.com/caijinyc/NeteaseCloudMusicApi.git
5 changes: 1 addition & 4 deletions public/electron.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,14 +133,12 @@ function createWindow() {
backgroundColor: '#021524'
});

// 打包应用的时候使用
// mainWindow.loadURL(`file://${__dirname}/index.html`);

// 加载应用----适用于 react 项目
mainWindow.loadURL('http://localhost:3000/');

// 打开开发者工具,默认不打开
// mainWindow.webContents.openDevTools();

mainWindow.once('ready-to-show', () => {
mainWindow.show();
});
Expand All @@ -149,7 +147,6 @@ function createWindow() {

// 关闭window时触发下列事件.
mainWindow.on('close', function(e) {
console.log('closesss');
if (forceQuit) {
app.quit();
} else {
Expand Down

0 comments on commit 02deaf0

Please sign in to comment.