browser index.html.

This commit is contained in:
Christopher Jeffrey 2016-06-06 14:06:18 -07:00
parent 74a815b016
commit f59ecaeb7f
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD
2 changed files with 2 additions and 7 deletions

View File

@ -266,17 +266,12 @@ more bitcoin magic).</small>
return query;
})();
var proxyServer = window.location.protocol
+ '//' + window.location.hostname
+ (window.location.port ? ':' + window.location.port : '');
bcoin.set({
network: query.network || 'segnet4',
debug: true,
db: query.db || null,
logger: logger,
useWorkers: true,
proxyServer: proxyServer
useWorkers: true
});
node = new bcoin.fullnode({

View File

@ -266,7 +266,7 @@ Environment.prototype.set = function set(options) {
this.maxWorkers = options.maxWorkers;
this.workerTimeout = options.workerTimeout;
this.workerUri = options.workerUri || '/bcoin-worker.js';
this.proxyServer = options.proxyServer || 'http://localhost:8080';
this.proxyServer = options.proxyServer;
this.logger = options.logger;
this.network.set(this.networkType);