summaryrefslogtreecommitdiff
path: root/Geshem.vue
diff options
context:
space:
mode:
authorYuval Adam <_@yuv.al>2017-11-17 18:56:28 +0200
committerYuval Adam <_@yuv.al>2017-11-17 18:56:28 +0200
commitf09a791a0acf9d668d6322d887c1519afaac964f (patch)
treecb170239d379d9510aee8e9f5357426dd7cdc8bb /Geshem.vue
parentfcd120097d3ad16962d71e7ff17deb1053f14041 (diff)
Fix some shit
Diffstat (limited to 'Geshem.vue')
-rw-r--r--Geshem.vue12
1 files changed, 9 insertions, 3 deletions
diff --git a/Geshem.vue b/Geshem.vue
index e7cac1e..62fe47d 100644
--- a/Geshem.vue
+++ b/Geshem.vue
@@ -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();