Security update: no script attributes

This commit is contained in:
Thomas Mathews 2023-01-20 09:53:33 -08:00
parent 8f14f77576
commit 21ce55f1cd
6 changed files with 134 additions and 66 deletions

View file

@ -19,6 +19,7 @@ const SID_FRIENDS = "friends";
// https://developer.mozilla.org/en-US/docs/Web/API/Window/DOMContentLoaded_event
addEventListener('DOMContentLoaded', (ev) => {
damus_web_init();
document.addEventListener("click", onclick_any);
});
async function damus_web_init() {
@ -295,4 +296,3 @@ function fetch_friends_history(friends, pool, relay) {
limit: 500,
}], relay);
}