Removed debug logs

This commit is contained in:
Andrew Bastin
2020-06-22 04:41:21 -04:00
parent a41b6be185
commit cb059a141f

View File

@@ -19,7 +19,6 @@ export default {
response: {
immediate: true,
handler(newValue) {
console.log("wetch")
this.imageSource = ""
const buf = this.response.body
@@ -28,7 +27,6 @@ export default {
const reader = new FileReader()
reader.onload = (e) => {
console.log(e.target.result)
this.imageSource = e.target.result
}
reader.readAsDataURL(blob)
@@ -37,17 +35,14 @@ export default {
},
mounted() {
console.log("mount")
this.imageSource = ""
console.log(this.response)
const buf = this.response.body
const bytes = new Uint8Array(buf)
const blob = new Blob([bytes.buffer])
const reader = new FileReader()
reader.onload = (e) => {
console.log(e.target.result)
this.imageSource = e.target.result
}
reader.readAsDataURL(blob)