mirror of
https://bitbucket.org/s_l_teichmann/mtsatellite
synced 2024-11-14 06:10:22 +01:00
Introduced .env file for configuration.
This commit is contained in:
parent
6339275b5b
commit
b832c30838
|
@ -52,17 +52,7 @@ export default {
|
|||
return {
|
||||
drawer: false,
|
||||
fixed: false,
|
||||
layerItems: [
|
||||
{
|
||||
icon: 'mdi-apps',
|
||||
title: 'Points of Interest',
|
||||
},
|
||||
{
|
||||
icon: 'mdi-chart-bubble',
|
||||
title: 'Buildings',
|
||||
},
|
||||
],
|
||||
title: 'Minetest - Map of the Real World',
|
||||
title: process.env.VUE_APP_TITLE,
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
|
|
|
@ -77,8 +77,7 @@ export default new Vuex.Store({
|
|||
|
||||
runAutoUpdate: function({ commit, state, dispatch}) {
|
||||
var me = this;
|
||||
// TODO: Make the URL to websocket configurable via .env
|
||||
state.socket = new WebSocket('ws://' + window.location.host + '/socket');
|
||||
state.socket = new WebSocket(process.env.VUE_APP_WEBSOCKET_URL);
|
||||
|
||||
state.socket.onerror = function() {
|
||||
commit('setAutoUpdate', false)
|
||||
|
|
Loading…
Reference in New Issue
Block a user