From f09a791a0acf9d668d6322d887c1519afaac964f Mon Sep 17 00:00:00 2001
From: Yuval Adam <_@yuv.al>
Date: Fri, 17 Nov 2017 18:56:28 +0200
Subject: Fix some shit

---
 Geshem.vue | 12 +++++++++---
 1 file changed, 9 insertions(+), 3 deletions(-)

(limited to 'Geshem.vue')

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();
-- 
cgit v1.3.1

