diff --git a/src/main/core/ipfs/node/index.js b/src/main/core/ipfs/node/index.js index 8f4cd2b27..77d38747d 100644 --- a/src/main/core/ipfs/node/index.js +++ b/src/main/core/ipfs/node/index.js @@ -19,14 +19,14 @@ const KILL_TIMEOUT = 15 * 1000 const DEFAULT_SWARM_TCP = 4010 const DEFAULT_SWARM_WS = 4011 const resolveIpfsPaths = () => require('go-ipfs').path() - .replace('app.asar', 'app.asar.unpacked'); + .replace('app.asar', 'app.asar.unpacked') const forceKill = async (isInstance) => { log.info('Forcing stop') await isInstance.stop() log.warn('Cleaning bad repo') await removeFiles(ROOT_IPFS_DIR) -}; +} const initIpfsNode = async (isInstance) => { // Check if running time dir exists @@ -44,7 +44,7 @@ const initIpfsNode = async (isInstance) => { const ipfsFactory = async (conf = {}) => { const keyFile = key.readFromStorage() || {} const node = 'node' in keyFile && keyFile.node ? keyFile.node : null - + // Link to current local node if (node) { log.info('Using provided node on port:', node) @@ -111,7 +111,6 @@ const ipfsFactory = async (conf = {}) => { return false } - const ipfsApi = isInstance?.api const id = ipfsApi.peerId log.info(`Started ${isInstance.started}`) diff --git a/src/render/core/settings.js b/src/render/core/settings.js index e8528c463..4f5ee2c5a 100755 --- a/src/render/core/settings.js +++ b/src/render/core/settings.js @@ -4,13 +4,12 @@ // import { Key as key } from '@main/bridge' - export default { streaming: ['hls'], gateways: () => { // const keyFile = key.readFromStorage() || {} // const node = 'node' in keyFile && keyFile.node ? keyFile.node : null - const port = '9090'//null ? '8080' : '9090' + const port = '9090'// null ? '8080' : '9090' return [ // 'https://vps1.phillm.net', @@ -30,7 +29,7 @@ export default { spanish: 'es', english: 'en' }, - get revHash() { + get revHash () { const v = Object.values(this.hash) const k = Object.keys(this.hash) return v.reduce((o, i, index) => { @@ -38,7 +37,7 @@ export default { return o }, {}) }, - get available() { + get available () { return Object.keys(this.hash) } },