SPARK-1071 Web UI cannot be accessed from differnet machines.
This commit is contained in:
1 parent
5208be6cd1
commit
a5152fa4cc
2 files changed
+5
-4
No files matched your search
@@ -1,11 +1,12 @@
|
||||
import {root} from 'proto'
|
||||
import { assertValid } from 'bts_assert'
|
||||
|
||||
const debug=true
|
||||
|
||||
function default_ws_uri() {
|
||||
if (typeof window == 'undefined' || debug) return 'ws://sparkvm:8000/'
|
||||
if (typeof window == 'undefined') return 'ws://sparkvm:8000/'
|
||||
const loc = window.location
|
||||
if (loc.hostname === "localhost") {
|
||||
return "ws://sparkvm:8000/"
|
||||
}
|
||||
let ws_uri = "ws:";
|
||||
if (loc.protocol === "https:") {
|
||||
ws_uri = "wss:";
|
||||
|
||||
@@ -144,7 +144,7 @@ let userControls (usersList:BTSUser list) (currentUser:BTSUser) (dispatch:Msg->U
|
||||
|
||||
let usersMenu (usersList:BTSUser list) (currentUser:BTSUser) (dispatch:Msg->Unit) =
|
||||
div
|
||||
[ ClassName "column is-3" ]
|
||||
[ ClassName "column is-narrow" ]
|
||||
[
|
||||
aside [ ClassName "menu" ]
|
||||
[ p [ ClassName "menu-label" ]
|
||||
|
||||
Reference in new issue
Block a user