From b3e3fe6f21ba474901868c00c33eac81bc3ddbd5 Mon Sep 17 00:00:00 2001 From: stonedDiscord Date: Thu, 18 Jul 2019 19:55:51 +0200 Subject: Revert "remove deprecated client_background that was blocking the scrollbar somehow" This reverts commit 6d3b340bac4e858d2f654040b0291d4cd0d83986. --- webAO/client.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'webAO/client.js') diff --git a/webAO/client.js b/webAO/client.js index d97cb2d..8a5ddfb 100644 --- a/webAO/client.js +++ b/webAO/client.js @@ -1087,6 +1087,7 @@ class Viewport { const chatBox = document.getElementById("client_chat"); const charSprite = document.getElementById("client_char"); const eviBox = document.getElementById("client_evi"); + const background = document.getElementById("client_background"); const shoutSprite = document.getElementById("client_shout"); const chatBoxInner = document.getElementById("client_inner_chat"); @@ -1102,6 +1103,8 @@ class Viewport { } if (this.chatmsg.isnew) { + // Reset screen background + background.style.backgroundColor = "transparent"; // Hide message and evidence window nameBox.style.display = "none"; chatBox.style.display = "none"; @@ -1139,6 +1142,7 @@ class Viewport { }); } else if (this.chatmsg.flash === 1) { // Flash screen + background.style.backgroundColor = "white"; this.sfxaudio.pause(); this.sfxplayed = 1; this.sfxaudio.src = AO_HOST + "sounds/general/sfx-realization.wav"; -- cgit