From 79b1e4f08a2314dbaab99e98a332938260f50ddc Mon Sep 17 00:00:00 2001 From: Ronan Date: Wed, 25 Sep 2019 08:13:47 -0700 Subject: [PATCH] fixed multi data stream issue on waiver downloads --- .firebase/hosting.ZGlzdA.cache | 36 +++++++++++++++++----------------- package.json | 2 +- src/views/emails.vue | 11 +++++++++-- 3 files changed, 28 insertions(+), 21 deletions(-) diff --git a/.firebase/hosting.ZGlzdA.cache b/.firebase/hosting.ZGlzdA.cache index 3f7f267..7abed8c 100644 --- a/.firebase/hosting.ZGlzdA.cache +++ b/.firebase/hosting.ZGlzdA.cache @@ -1,18 +1,18 @@ -android-chrome-192x192.png,1569353906502,e1d06a5ab80dc9aabee25ed70d78f836fccdd1daf1146ee0b0a91912eab11d46 -browserconfig.xml,1569353906502,0750e3233b48515b59dcbc5b36e64eafbeb9e346e083d5450cabcd5ae7b179f8 -favicon-16x16.png,1569353906502,9f27ecd6b21e05b3bb3102a2ba6de33957b5ed0df95b275daa29e1a85e1ad959 -favicon-32x32.png,1569353906502,851310fa4f1d7e4fde143057da484ba3b4d1c5a48e8bdfa1ccbe78efc5101db1 -apple-touch-icon.png,1569353906502,45dbcceec2eef1588896029b153272718647e021bc9ddb05e95a92fa90d7cfe9 -index.html,1569353906502,dae2be5067d5fdbfc31b8bb7855d66c8726b1e6e78c0620e0a8ea3fca880a953 -mstile-150x150.png,1569353906502,55fcfc9a66d18aa2de3ab49def3624047a321be119ddd181b76d974338710d44 -site.webmanifest,1569353906502,d89b44e10a97efac730717c3bd3ee3c11cc678c3ab4d7db35fe7814a068599a8 -css/chunk-vendors.053a884e.css,1569353906552,87eb7a2095118a0303878ae9765366025cc3aa64dd870d5afce650d9b5e7e718 -img/logo.097091a8.svg,1569353906518,b18e0afd9f1223897ec12f0e12902a74b5b026205d4840db570afc099b9fd8cb -css/app.9e19db10.css,1569353906551,623fdcb84ba5b9d8556ebc3d9fd80805ae9367e1e42b5377f0154c18f3e982bb -js/app.55398c0e.js,1569353906518,46d243c68cffa8d6cb309d29bc18ff4b8ebaa1ed1ae98aeb8f87812b84263d6d -safari-pinned-tab.svg,1569353906518,ddaf17ba5092ed91f4b417552ab6330573e6ab056f2c37f68fc1a1e0660e5464 -favicon.ico,1569353906502,3b1278b650c02c84e2b05e4d61e37b00ae9c641ede9f8f64b728036f2fb03110 -android-chrome-512x512.png,1569353906518,af4d07fc33811c5e9b618b060f0232e62b42f58ee165f74358a25af93da637b9 -js/app.55398c0e.js.map,1569353906552,f7cac099a6ae18a78f6a4f5fb4949d891dd260bf8128598170948abeb7c3c8b4 -js/chunk-vendors.7a047a78.js,1569353906552,76e0101ec892e7bf272c2c008a02887cf15df9a8048cb928249479f8a90f6e7e -js/chunk-vendors.7a047a78.js.map,1569353906555,1389b38cf809926dbadb0dcd5d56f31e0cf101b41671b121910bd4e7a2817f14 +android-chrome-192x192.png,1569424347314,e1d06a5ab80dc9aabee25ed70d78f836fccdd1daf1146ee0b0a91912eab11d46 +browserconfig.xml,1569424347315,0750e3233b48515b59dcbc5b36e64eafbeb9e346e083d5450cabcd5ae7b179f8 +favicon-16x16.png,1569424347315,9f27ecd6b21e05b3bb3102a2ba6de33957b5ed0df95b275daa29e1a85e1ad959 +favicon-32x32.png,1569424347315,851310fa4f1d7e4fde143057da484ba3b4d1c5a48e8bdfa1ccbe78efc5101db1 +index.html,1569424347314,0cdf5994c03d34c5b205d5c22160bd3926ad0a65d26dd91ac69a999cca6a41cd +apple-touch-icon.png,1569424347314,45dbcceec2eef1588896029b153272718647e021bc9ddb05e95a92fa90d7cfe9 +site.webmanifest,1569424347343,d89b44e10a97efac730717c3bd3ee3c11cc678c3ab4d7db35fe7814a068599a8 +mstile-150x150.png,1569424347315,55fcfc9a66d18aa2de3ab49def3624047a321be119ddd181b76d974338710d44 +css/chunk-vendors.053a884e.css,1569424347357,87eb7a2095118a0303878ae9765366025cc3aa64dd870d5afce650d9b5e7e718 +img/logo.097091a8.svg,1569424347315,b18e0afd9f1223897ec12f0e12902a74b5b026205d4840db570afc099b9fd8cb +css/app.9e19db10.css,1569424347343,623fdcb84ba5b9d8556ebc3d9fd80805ae9367e1e42b5377f0154c18f3e982bb +safari-pinned-tab.svg,1569424347343,ddaf17ba5092ed91f4b417552ab6330573e6ab056f2c37f68fc1a1e0660e5464 +favicon.ico,1569424347314,3b1278b650c02c84e2b05e4d61e37b00ae9c641ede9f8f64b728036f2fb03110 +js/app.b50937cf.js,1569424347357,b51027faf19835fc05b1644354d396efbe3779d304f4d841cf95949107b91868 +android-chrome-512x512.png,1569424347315,af4d07fc33811c5e9b618b060f0232e62b42f58ee165f74358a25af93da637b9 +js/app.b50937cf.js.map,1569424347357,da3249fbe8ff409a96aa4304d4085365bfef48243d3fb1aee4180dbb6d8e2fb8 +js/chunk-vendors.7a047a78.js,1569424347358,76e0101ec892e7bf272c2c008a02887cf15df9a8048cb928249479f8a90f6e7e +js/chunk-vendors.7a047a78.js.map,1569424347360,1389b38cf809926dbadb0dcd5d56f31e0cf101b41671b121910bd4e7a2817f14 diff --git a/package.json b/package.json index 1b8663b..842e176 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "hyphen-hacks-dashboard", - "version": "1.13.0", + "version": "1.13.1", "private": true, "scripts": { "serve": "vue-cli-service serve", diff --git a/src/views/emails.vue b/src/views/emails.vue index ac38dd9..b3dda5b 100644 --- a/src/views/emails.vue +++ b/src/views/emails.vue @@ -131,8 +131,15 @@ if (result.done) return; const text = decoder.decode(result.value, {stream: true}); console.log(text); - - let jsonResult = JSON.parse(text) + let jsonResult + try { + jsonResult = JSON.parse(text) + } catch { + let arrayJSON = text.split('}') + let lastStatement = arrayJSON[arrayJSON.length - 2] + "}" + console.log(arrayJSON, lastStatement) + jsonResult = JSON.parse(lastStatement) + } if (jsonResult.error) { this.downloading = false this.$swal({