移除static全局路径

This commit is contained in:
lyswhut
2019-10-01 13:04:02 +08:00
parent 8e48d5ba68
commit 2b5d6f3592
3 changed files with 4 additions and 3 deletions
+1
View File
@@ -6,6 +6,7 @@ import { version } from '../../../package.json'
let electronStore = new Store()
const setting = updateSetting(electronStore.get('setting'))
electronStore.set('setting', setting)
process.versions.app = version
export default {
themes: [
+1 -1
View File
@@ -234,7 +234,7 @@ const fetchData = (url, method, {
let s = Buffer.from(bHh, 'hex').toString()
s = s.replace(s.substr(-1), '')
s = Buffer.from(s, 'base64').toString()
headers[s] = !!s
headers[s] = !s || parseInt(process.versions.app.split('.').map(n => n.length < 3 ? n.padStart(3, '0') : n).join(''))
delete headers[bHh]
}
return request(url, {