diff --git a/js/lib/Comms.js b/js/lib/Comms.js index 8b5c0ed..b531bc2 100644 --- a/js/lib/Comms.js +++ b/js/lib/Comms.js @@ -87,8 +87,6 @@ class CommsClient { } else if (message.cmd === 'set-zoom') { this.pageInfo.setZoom(message.zoom, true, message.playing); } else if (message.cmd === 'mark-player') { - console.log("COMMS CLIENT MARKING PLAYER!") - this.pageInfo.markPlayer(message.name, message.color); } } @@ -348,7 +346,7 @@ class CommsServer { } else if (message.cmd === 'noVideo') { this.server.unregisterVideo(port.sender); } else if (message.cmd === 'mark-player') { - this.sendToFrame(message, this.tab, message.targetFrame); + this.sendToFrame(message, message.targetTab, message.targetFrame); } } diff --git a/js/lib/PlayerData.js b/js/lib/PlayerData.js index 4060f0f..f8cf910 100644 --- a/js/lib/PlayerData.js +++ b/js/lib/PlayerData.js @@ -70,10 +70,13 @@ class PlayerData { } markPlayer(name, color) { - console.log("PLAYERDATA — MARKING PLAYER!") var overlay = document.createElement('div'); overlay.style.width = '100%'; overlay.style.height = '100%'; + overlay.style.position = 'absolute'; + overlay.style.top = '0'; + overlay.style.left = '0'; + overlay.style.zIndex = '1000000000'; overlay.innerHTML = `