diff options
| author | Yuval Adam <_@yuv.al> | 2017-11-17 18:56:28 +0200 |
|---|---|---|
| committer | Yuval Adam <_@yuv.al> | 2017-11-17 18:56:28 +0200 |
| commit | f09a791a0acf9d668d6322d887c1519afaac964f (patch) | |
| tree | cb170239d379d9510aee8e9f5357426dd7cdc8bb /Geshem.vue | |
| parent | fcd120097d3ad16962d71e7ff17deb1053f14041 (diff) | |
Fix some shit
Diffstat (limited to 'Geshem.vue')
| -rw-r--r-- | Geshem.vue | 12 |
1 files changed, 9 insertions, 3 deletions
@@ -56,7 +56,7 @@ computed: { datetime: function () { if (!this.imgs) { return '' }; - var d = this.imgs[this.res][this.slider].substr(0, 13); + var d = this.imgs[this.res][this.slider].substr(5, 13); var md = moment.utc(d, 'YYYYMMDD/HHmm').tz('Asia/Jerusalem'); return md }, @@ -71,12 +71,18 @@ }, mounted: function () { var vm = this; - axios.get('//imgs.geshem.space/imgs.json').then((res) => { + axios({ + url: '//imgs.geshem.space/imgs.json', + method: 'get', + withCredentials: true + }).then((res) => { vm.imgs = res.data; if (vm.mapLoaded) { vm.loadSources(); } - }) + }).catch(function(error) { + console.log(error) + }) }, created: function () { this.initMap(); |
