From a342c79aeac3e147a39a98ff8c07954bd4aac4fb Mon Sep 17 00:00:00 2001 From: Pierre Dubouilh Date: Sat, 4 Mar 2023 16:06:58 +0100 Subject: [PATCH] let html be displayed naturally closes #83 --- ui/script.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ui/script.js b/ui/script.js index 4c71f52..40044d0 100755 --- a/ui/script.js +++ b/ui/script.js @@ -99,6 +99,9 @@ window.onClickLink = e => { } else if (isVideo(a.href) && !isVideoMode()) { videoOn(a.href) return false + // let html be displayed naturally + } else if (a.innerText.endsWith(".html")) { + return true } // else just force download