Archived
2
0

remove HTML tags from username

This commit is contained in:
m1k1o 2021-02-13 12:19:39 +01:00
parent c2e57cf51a
commit 61e6f62ff5
2 changed files with 6 additions and 0 deletions

View File

@ -41,6 +41,7 @@ This app uses Web RTC to stream a desktop inside of a docker container. This is
- Ignore duplicate notify bars. - Ignore duplicate notify bars.
- No pointer events for notify bars. - No pointer events for notify bars.
- Disable debug mode by default. - Disable debug mode by default.
- Remove HTML tags from user name.
# Getting started & FAQ # Getting started & FAQ

View File

@ -48,6 +48,11 @@ export const mutations = mutationTree(state, {
state.id = id state.id = id
}, },
addMember(state, member: Member) { addMember(state, member: Member) {
// remove html tags
let tmp = document.createElement("div");
tmp.innerHTML = member.displayname;
member.displayname = tmp.textContent || tmp.innerText || "";
state.members = { state.members = {
...state.members, ...state.members,
[member.id]: { [member.id]: {