Skip to content

Commit

Permalink
Deal with some XSS vulnerabilities
Browse files Browse the repository at this point in the history
  • Loading branch information
micrology committed Oct 4, 2024
1 parent fb42c0f commit 61caadb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions js/merge.js
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ function mergeMaps() {

export function mergeRoom(otherRoom) {
openOtherDoc(otherRoom)
console.log(`%cMerging map at ${room} (map A) with map at ${otherRoom} (map B)`, 'font-weight: bold')
console.log('%cMerging map at %s (map A) with map at %s (map B)', 'font-weight: bold', room, otherRoom)
bwsp.on('sync', (status) => {
if (!status) return
bNodesMap.forEach((n) => bdata.nodes.update(n))
Expand Down Expand Up @@ -324,7 +324,7 @@ function diffMaps() {
}
export function diffRoom(otherRoom) {
openOtherDoc(otherRoom)
console.log(`%cComparing map at ${room} (map A) with map at ${otherRoom} (map B)`, 'font-weight: bold')
console.log('%cComparing map at %s (map A) with map at %s (map B)', 'font-weight: bold', room, otherRoom)
bwsp.on('sync', (status) => {
if (!status) return
bNodesMap.forEach((n) => bdata.nodes.update(n))
Expand Down
2 changes: 1 addition & 1 deletion js/prsm.js
Original file line number Diff line number Diff line change
Expand Up @@ -2730,7 +2730,7 @@ function createTitleDropDown() {
function makeTitleDropDownEntry(name, room) {
let li = document.createElement('li')
li.classList.add('room-title')
li.innerHTML = name
li.textContent = name
li.dataset.room = room
li.addEventListener('click', (event) => changeRoom(event))
selectList.appendChild(li)
Expand Down

0 comments on commit 61caadb

Please sign in to comment.