fix client linter

This commit is contained in:
m1k1o 2021-02-13 12:31:13 +01:00
parent 61e6f62ff5
commit eddd59c49d

View File

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