Skip to content
This repository has been archived by the owner on Feb 11, 2023. It is now read-only.

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
nashaofu committed Feb 8, 2018
2 parents 27d952e + 2783a1a commit 228da65
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 7 deletions.
6 changes: 3 additions & 3 deletions app/dingtalk.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ const {
dialog
} = require('electron')

const download = require('./plugins/download')
const shortcutCapture = require('./plugins/shortcut-capture')
const download = require('./download')
const shortcutCapture = require('./shortcut-capture')

exports = module.exports = class DingTalk {
// 构造函数
Expand Down Expand Up @@ -449,7 +449,7 @@ exports = module.exports = class DingTalk {
this.$errorWindow = null
})
// 加载URL地址
this.$errorWindow.loadURL(`file://${__dirname}/views/error.html`)
this.$errorWindow.loadURL(`file://${__dirname}/views/shortcut-capture.html`)
}

/**
Expand Down
File renamed without changes.
File renamed without changes.
5 changes: 2 additions & 3 deletions app/plugins/shortcut-capture.js → app/shortcut-capture.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
const {
app,
globalShortcut,
ipcMain,
BrowserWindow,
Expand Down Expand Up @@ -103,8 +102,8 @@ function createWindow (source, setting) {
$win.webContents.send('dom-ready', { source, setting })
$win.focus()
})
const filename = path.join(app.getAppPath(), './app/views/shortcut-capture.html')
$win.loadURL(filename)
$win.loadURL(`file://${__dirname}/views/shortcut-capture.html`)
$win.webContents.openDevTools()
$windows.push($win)
}

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": "dingtalk",
"version": "1.5.0",
"version": "1.5.1",
"description": "钉钉linux桌面版,基于electron开发",
"main": "./app/index.js",
"scripts": {
Expand Down

0 comments on commit 228da65

Please sign in to comment.