let html be displayed naturally

closes #83
This commit is contained in:
Pierre Dubouilh 2023-03-04 16:06:58 +01:00 committed by Pierre Dubouilh
parent 7b899af6a8
commit a342c79aea

3
ui/script.js vendored
View file

@ -99,6 +99,9 @@ window.onClickLink = e => {
} else if (isVideo(a.href) && !isVideoMode()) { } else if (isVideo(a.href) && !isVideoMode()) {
videoOn(a.href) videoOn(a.href)
return false return false
// let html be displayed naturally
} else if (a.innerText.endsWith(".html")) {
return true
} }
// else just force download // else just force download