Browse Source

remove logs

q-apps
Phillip Lang Martinez 2 years ago
parent
commit
6e4e171257
  1. 11
      qortal-ui-plugins/plugins/core/components/ChatTextEditor.js

11
qortal-ui-plugins/plugins/core/components/ChatTextEditor.js

@ -330,7 +330,6 @@ class ChatTextEditor extends LitElement {
} }
async updated(changedProperties) { async updated(changedProperties) {
console.log({changedProperties});
if (changedProperties && changedProperties.has('editedMessageObj')) { if (changedProperties && changedProperties.has('editedMessageObj')) {
if (this.editedMessageObj) { if (this.editedMessageObj) {
this.chatEditor.insertText(this.editedMessageObj.message); this.chatEditor.insertText(this.editedMessageObj.message);
@ -344,14 +343,8 @@ class ChatTextEditor extends LitElement {
const captionEditor = this.shadowRoot.getElementById(this.iframeId).contentWindow.document.getElementById('chatbarId'); const captionEditor = this.shadowRoot.getElementById(this.iframeId).contentWindow.document.getElementById('chatbarId');
captionEditor.setAttribute('data-placeholder', this.placeholder); captionEditor.setAttribute('data-placeholder', this.placeholder);
} }
if (changedProperties && changedProperties.has("chatMessageSize")) {
console.log(this.chatMessageSize, "chat message size");
}
if (changedProperties && changedProperties.has("iframeHeight")) {
console.log(this.iframeHeight, "iframe height");
}
if (changedProperties && changedProperties.has("imageFile")) { if (changedProperties && changedProperties.has("imageFile")) {
console.log(this.imageFile, "imageFile");
this.chatMessageInput = "newChat"; this.chatMessageInput = "newChat";
} }
} }
@ -372,7 +365,6 @@ class ChatTextEditor extends LitElement {
} }
getMessageSize(message){ getMessageSize(message){
console.log("super12");
try { try {
const messageText = message; const messageText = message;
// Format and Sanitize Message // Format and Sanitize Message
@ -691,7 +683,6 @@ class ChatTextEditor extends LitElement {
if (e.type === 'keydown') { if (e.type === 'keydown') {
await new Promise((res, rej) => { await new Promise((res, rej) => {
setTimeout(() => { setTimeout(() => {
console.log(editorConfig.editableElement.contentDocument.body.querySelector("#chatbarId").innerHTML, "here 18");
editorConfig.calculateIFrameHeight(editorConfig.editableElement.contentDocument.body.scrollHeight); editorConfig.calculateIFrameHeight(editorConfig.editableElement.contentDocument.body.scrollHeight);
editorConfig.getMessageSize(editorConfig.editableElement.contentDocument.body.querySelector("#chatbarId").innerHTML); editorConfig.getMessageSize(editorConfig.editableElement.contentDocument.body.querySelector("#chatbarId").innerHTML);
}, 0); }, 0);

Loading…
Cancel
Save