TF-2119 Remove log console unnecessary in WebView
(cherry picked from commit 12a63c64f92ce26c1e92f08393514e62374c9ba0)
This commit is contained in:
@@ -44,13 +44,6 @@ class HtmlUtils {
|
|||||||
let maxOffset = Math.round(scrollWidth - offsetWidth);
|
let maxOffset = Math.round(scrollWidth - offsetWidth);
|
||||||
let scrollLeftRounded = Math.round(newScrollLeft);
|
let scrollLeftRounded = Math.round(newScrollLeft);
|
||||||
|
|
||||||
/*
|
|
||||||
console.log('newScrollLeft: ' + newScrollLeft);
|
|
||||||
console.log('scrollWidth: ' + scrollWidth);
|
|
||||||
console.log('offsetWidth: ' + offsetWidth);
|
|
||||||
console.log('maxOffset: ' + maxOffset);
|
|
||||||
console.log('scrollLeftRounded: ' + scrollLeftRounded); */
|
|
||||||
|
|
||||||
if (xDiff > 0) {
|
if (xDiff > 0) {
|
||||||
if (maxOffset === scrollLeftRounded ||
|
if (maxOffset === scrollLeftRounded ||
|
||||||
maxOffset === (scrollLeftRounded + 1) ||
|
maxOffset === (scrollLeftRounded + 1) ||
|
||||||
@@ -161,11 +154,8 @@ class HtmlUtils {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function handleOnClickSignature() {
|
function handleOnClickSignature() {
|
||||||
console.log("handleOnClickSignature");
|
|
||||||
const contentElement = document.querySelector('.tmail-content > .tmail-signature > .tmail-signature-content');
|
const contentElement = document.querySelector('.tmail-content > .tmail-signature > .tmail-signature-content');
|
||||||
const buttonElement = document.querySelector('.tmail-content > .tmail-signature > .tmail-signature-button');
|
const buttonElement = document.querySelector('.tmail-content > .tmail-signature > .tmail-signature-button');
|
||||||
console.log("contentElement: " + contentElement);
|
|
||||||
console.log("buttonElement: " + buttonElement);
|
|
||||||
if (contentElement && buttonElement) {
|
if (contentElement && buttonElement) {
|
||||||
if (contentElement.style.display === 'block') {
|
if (contentElement.style.display === 'block') {
|
||||||
contentElement.style.display = 'none';
|
contentElement.style.display = 'none';
|
||||||
|
|||||||
@@ -151,11 +151,8 @@ class _HtmlContentViewerOnWebState extends State<HtmlContentViewerOnWeb> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function handleOnClickSignature() {
|
function handleOnClickSignature() {
|
||||||
console.log("handleOnClickSignature");
|
|
||||||
const contentElement = document.querySelector('.tmail-content > .tmail-signature > .tmail-signature-content');
|
const contentElement = document.querySelector('.tmail-content > .tmail-signature > .tmail-signature-content');
|
||||||
const buttonElement = document.querySelector('.tmail-content > .tmail-signature > .tmail-signature-button');
|
const buttonElement = document.querySelector('.tmail-content > .tmail-signature > .tmail-signature-button');
|
||||||
console.log("contentElement: " + contentElement);
|
|
||||||
console.log("buttonElement: " + buttonElement);
|
|
||||||
if (contentElement && buttonElement) {
|
if (contentElement && buttonElement) {
|
||||||
if (contentElement.style.display === 'block') {
|
if (contentElement.style.display === 'block') {
|
||||||
contentElement.style.display = 'none';
|
contentElement.style.display = 'none';
|
||||||
|
|||||||
Reference in New Issue
Block a user