Fix cache busting URL + Fix bug not highlighing some texts where there is p/newlines

This commit is contained in:
Bofh 2022-12-17 22:51:05 +01:00
parent a1edf0a13f
commit 64b60f33f2
2 changed files with 2 additions and 1 deletions

View File

@ -26,7 +26,7 @@ window.cache = {};
window.http_cachebuster = { window.http_cachebuster = {
'api/v1/http/[^\/]+/accounts/[^\/]+': 'users', 'api/v1/http/[^\/]+/accounts/[^\/]+': 'users',
'api/v1/config/trusted_users/add': 'users', 'api/v1/config/trusted_users/add': 'users',
'api/v1/cache/put?keys=temp_hidden': 'users', 'api/v1/cache/put/?keys=temp_hidden': 'users',
}; };
</script> </script>
<script> <script>

View File

@ -137,6 +137,7 @@ function isVisible(element) {
} }
function html2text(html) { function html2text(html) {
html = html.replaceAll('>', '>&nbsp;');
var e = document.createElement('div'); var e = document.createElement('div');
e.innerHTML = html; e.innerHTML = html;
const result = e.innerText; const result = e.innerText;