[TASK] autoselect https websocket (wss)

This commit is contained in:
Martin Geno 2017-07-01 02:10:56 +02:00
parent 75f3bae1f4
commit e02273e0ef
No known key found for this signature in database
GPG Key ID: F0D39A37E925E941
1 changed files with 6 additions and 3 deletions

View File

@ -5,20 +5,23 @@
const config = { const config = {
'title': 'FreifunkManager - Breminale', 'title': 'FreifunkManager - Breminale',
'backend': `ws://${location.host}/websocket`, 'backend': `ws${location.protocol == 'https:' ? 's' : ''}://${location.host}/websocket`,
'node': { 'node': {
// Minuten till is shown as offline // Minuten till is shown as offline
'offline': 5 'offline': 5
}, },
'map': { 'map': {
'view': { 'view': {
'bound': [53.07103, 8.81624], 'bound': [
53.07103,
8.81624
],
'zoom': 17 'zoom': 17
}, },
'maxZoom': 20, 'maxZoom': 20,
'tileLayer': 'https://tiles.bremen.freifunk.net/{z}/{x}/{y}.png', 'tileLayer': 'https://tiles.bremen.freifunk.net/{z}/{x}/{y}.png',
/* Heatmap settings /* Heatmap settings
size: in meters (default: 30km) size: in meters (default: 30km)
opacity: in percent/100 (default: 1) opacity: in percent/100 (default: 1)
gradientTexture: url-to-texture-image (default: false) gradientTexture: url-to-texture-image (default: false)