Fix textarea sanitation. Fix extensions promise never resolving on 404

This commit is contained in:
Cohee
2023-07-19 18:40:28 +03:00
parent 4c3aafa3a8
commit c6a6a8352d
2 changed files with 4 additions and 1 deletions

View File

@@ -7522,8 +7522,9 @@ $(document).ready(function () {
.closest(".mes_block")
.find(".mes_text")
.append(
`<textarea id='curEditTextarea' class='edit_textarea' style='max-width:auto; '>${text}</textarea>`
`<textarea id='curEditTextarea' class='edit_textarea' style='max-width:auto;'></textarea>`
);
$('#curEditTextarea').val(text);
let edit_textarea = $(this)
.closest(".mes_block")
.find(".edit_textarea");

View File

@@ -159,6 +159,8 @@ async function getManifests(names) {
const json = await response.json();
obj[name] = json;
resolve();
} else {
reject();
}
}).catch(err => reject() && console.log('Could not load manifest.json for ' + name, err));
});