Fix old Utils references in js

This commit is contained in:
Patrick Jentsch 2023-11-13 10:30:24 +01:00
parent bf8b22fb58
commit df33c7b36d
2 changed files with 3 additions and 3 deletions

View File

@ -349,7 +349,7 @@ class GeneralQueryBuilderFunctions {
switchToExpertModeParser() {
let expertModeInputField = document.querySelector('#corpus-analysis-concordance-form-query');
expertModeInputField.value = '';
let queryBuilderInputFieldValue = Utils.unescape(document.querySelector('#corpus-analysis-concordance-query-preview').innerHTML.trim());
let queryBuilderInputFieldValue = nopaque.Utils.unescape(document.querySelector('#corpus-analysis-concordance-query-preview').innerHTML.trim());
if (queryBuilderInputFieldValue !== "" && queryBuilderInputFieldValue !== ";") {
expertModeInputField.value = queryBuilderInputFieldValue;
}

View File

@ -198,7 +198,7 @@
function mastodonStatusToElement(status) {
let date = new Date(status.created_at).toLocaleString('en-US');
let newsElement = Utils.HTMLToElement(
let newsElement = nopaque.Utils.HTMLToElement(
`
<div class="row">
<div class="col s11">
@ -222,7 +222,7 @@
function bisBlogsEntryToElement(entry) {
let date = new Date(entry.published).toLocaleString('en-US');
let newsElement = Utils.HTMLToElement(
let newsElement = nopaque.Utils.HTMLToElement(
`
<div class="row">
<div class="col s1">