Skip to content
This repository was archived by the owner on Oct 8, 2019. It is now read-only.

Commit 178f08e

Browse files
committed
fix(Deploy): use correct web socket URL
1 parent 63f91b5 commit 178f08e

1 file changed

Lines changed: 11 additions & 4 deletions

File tree

Gruntfile.coffee

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -462,14 +462,21 @@ module.exports = (grunt) ->
462462
# Tor will only work with rootURL = "/"
463463
console.log("No root domain specified, assuming blockchain.info or tor");
464464
@rootDomain = null
465+
466+
grunt.task.run [
467+
"replace:root_url"
468+
# Web socket URL will default to wss://blockchain.info/inv
469+
# Web sockets currently don't work on our Tor site
470+
# "replace:web_socket_url"
471+
]
465472
else
466473
console.log("Root domain: " + rootDomain)
467474
@rootDomain = rootDomain
468475

469-
grunt.task.run [
470-
"replace:root_url"
471-
"replace:web_socket_url"
472-
]
476+
grunt.task.run [
477+
"replace:root_url"
478+
"replace:web_socket_url"
479+
]
473480

474481
if apiDomain
475482
@apiDomain = apiDomain

0 commit comments

Comments
 (0)