1
0
mirror of https://github.com/Tygs/0bin.git synced 2023-08-10 21:13:00 +03:00

Replace pre reader mode by a div

This commit is contained in:
ksamuel
2020-08-13 17:17:46 +02:00
parent cda601a355
commit cc3ed69710
3 changed files with 15 additions and 12 deletions

View File

@@ -71,7 +71,6 @@ const app = new Vue({
toggleReaderMode: function () {
if (!this.readerMode) {
this.messages = [];
this.currentPaste.content = zerobin.getPasteContent();
}
this.readerMode = !this.readerMode;
@@ -758,6 +757,7 @@ if (content && key) {
/* Decrypted content goes back to initial container*/
document.querySelector('#paste-content').innerText = content;
app.currentPaste.content = content
if (content.indexOf('data:image') == 0) {
// Display Image