Skip to content

Commit

Permalink
refactor: 修改部分 deprecated 调用
Browse files Browse the repository at this point in the history
  • Loading branch information
Yesterday17 committed Jun 13, 2020
1 parent 05720ab commit b60e77f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/bin/main/mainLoader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ ipcRenderer.on('open-devtools', () => {
}
})

ipcRenderer.on('set-audio-muted', (event, bool:boolean) => {
ipcRenderer.on('set-audio-muted', (event, bool: boolean) => {
if (webContents) {
mainWindow.setAudioMuted(bool)
}
Expand Down Expand Up @@ -140,7 +140,7 @@ mainWindow.addEventListener('dom-ready', () => {
scaleWindow(100)
}

mainWindow.setUserAgent(navigator.userAgent)
mainWindow.useragent = navigator.userAgent
})

ipcRenderer.on(
Expand Down
2 changes: 1 addition & 1 deletion src/utilities/screenshot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class ScreenShot extends Utility {
// 由主进程进行保存
const filePath = path.join(
app.getPath('pictures'),
app.getName(),
app.name,
Date.now() + '.png'
)
// 写入文件
Expand Down

0 comments on commit b60e77f

Please sign in to comment.