From b10c083560bb1b7ccb428701b81ab21ba771ab51 Mon Sep 17 00:00:00 2001 From: zadam Date: Sun, 29 Mar 2020 17:11:44 +0200 Subject: [PATCH] check for images happens before other methods in utils.isHtmlEmpty() --- src/public/javascripts/services/utils.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/public/javascripts/services/utils.js b/src/public/javascripts/services/utils.js index c7889e6af..e7f5eeb10 100644 --- a/src/public/javascripts/services/utils.js +++ b/src/public/javascripts/services/utils.js @@ -262,9 +262,10 @@ function isHtmlEmpty(html) { html = html.toLowerCase(); - return $("
").html(html).text().trim().length === 0 - && !html.includes('").html(html).text().trim().length === 0; } async function clearBrowserCache() {