Skip to content

Commit

Permalink
test: auto-update test
Browse files Browse the repository at this point in the history
  • Loading branch information
huibizhang committed Jul 1, 2023
1 parent 052525e commit a9c5b29
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,10 +144,8 @@ function createWindow() {
ipcMain.on("updating", (evt, url) => {
if (downloadItem) if (downloadItem.getState() === "progressing") return;

// 触发下载
mainWindow.webContents.downloadURL(url);

// 监听 will-download
session.defaultSession.on("will-download", (event, item, webContents) => {
downloadItem = item;

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "photolisting",
"version": "0.0.2",
"version": "0.0.3",
"main": "main.js",
"scripts": {
"dev": "cross-env NODE_ENV=dev vite",
Expand Down

0 comments on commit a9c5b29

Please sign in to comment.