Skip to content

Commit

Permalink
what the fuck!
Browse files Browse the repository at this point in the history
  • Loading branch information
oxogenesis authored Jan 12, 2020
1 parent e1da60e commit 7a915ca
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/components/section/Message.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
</div>
</div>
<div class="message-textWrapper">
<div ref="content" :class="[{'message-confirm':message.confirmed}, 'message-text']"></div>
<div :class="[{'message-confirm':message.confirmed}, 'message-text']">{{message.content}}</div>
</div>
</li>
</template>
Expand Down Expand Up @@ -46,6 +46,9 @@ export default {
}
},
mounted() {
/*
//what the fuck!
console.log(`mounted#${this.message.sequence}#${this.message.content}`)
let content = this.message.content
if (content.length > 22 && content.substring(0, 22) == 'data:image/png;base64,') {
let newImg = document.createElement("img")
Expand All @@ -56,6 +59,7 @@ export default {
content = content.replace(/\r/ig, "").replace(/\n/ig, "<br>");
this.$refs.content.innerHTML = content;
}
*/
}
}
Expand Down

0 comments on commit 7a915ca

Please sign in to comment.