Browse Source

修复一处打开下载页面时的问题。

oldj 8 years ago
parent
commit
8849010ff5

+ 1 - 1
app/bundle.js

@@ -16663,7 +16663,7 @@ module.exports = "data:application/vnd.ms-fontobject;base64,pj8AAIw+AAABAAIAAAAA
 "use strict";
 
 
-exports.version = [3, 3, 0, 4603];
+exports.version = [3, 2, 0, 4603];
 
 /***/ }),
 /* 71 */

+ 1 - 1
app/server/actions/checkNeedRemoteRefresh.js

@@ -5,7 +5,7 @@
 
 'use strict'
 
-const isExpired = require('./checkIsExpired')
+const isExpired = require('../checkIsExpired')
 const saveHosts = require('./saveHosts')
 
 module.exports = (svr, list, hosts = null) => {

+ 1 - 1
app/server/actions/checkOneRemoteHosts.js

@@ -6,7 +6,7 @@
 'use strict'
 
 const getUrl = require('./getUrl')
-const isExpired = require('./checkIsExpired')
+const isExpired = require('../checkIsExpired')
 
 function now () {
   let dt = new Date()

+ 4 - 1
app/server/actions/openUrl.js

@@ -8,5 +8,8 @@
 const {shell} = require('electron')
 
 module.exports = (svr, url) => {
-  shell.openExternal(url)
+  return Promise.resolve()
+    .then(() => {
+      shell.openExternal(url)
+    })
 }

+ 0 - 1
app/server/actions/test.js

@@ -8,4 +8,3 @@
 module.exports = () => {
   return Promise.resolve().then(() => 'ttt33')
 }
-

+ 0 - 0
app/server/actions/checkIsExpired.js → app/server/checkIsExpired.js


+ 1 - 1
app/version.js

@@ -1 +1 @@
-exports.version = [3,3,0,4603];
+exports.version = [3,2,0,4603];