uniform requests through electron's net and node http/https to support different proxy setups

This commit is contained in:
azivner
2018-12-16 23:30:53 +01:00
parent b942163748
commit 4ca7886090
3 changed files with 130 additions and 155 deletions

View File

@@ -17,6 +17,6 @@ async function get(name) {
module.exports = {
getSyncServerHost: async () => await get('syncServerHost'),
isSyncSetup: async () => !!await get('syncServerHost'),
getSyncTimeout: async () => await get('syncServerTimeout'),
getSyncTimeout: async () => parseInt(await get('syncServerTimeout')),
getSyncProxy: async () => await get('syncProxy')
};