make domain configurable via config.json

This commit is contained in:
slice 2018-07-15 21:21:41 -07:00
parent e33f0fa558
commit a5a005a1e4
No known key found for this signature in database
GPG Key ID: 1508C19D7436A26D
3 changed files with 5 additions and 3 deletions

View File

@ -0,0 +1,3 @@
{
"domain": "https://elstatus.stayathomeserver.club"
}

View File

@ -5,9 +5,7 @@ import Service from './Service.js'
import ServicePlaceholder from './ServicePlaceholder.js'
import OP from '../ws/op.js'
import { log } from '../util.js'
const DOMAIN = 'https://elstatus.stayathomeserver.club'
// const ENDPOINT = 'http://localhost:8069/api/status'
import { domain as DOMAIN } from '../config.json'
export default class App extends Component {
websocket = null;

View File

@ -0,0 +1 @@
../config.json