diff options
| author | stonedDiscord <stoned@derpymail.org> | 2019-07-18 20:50:20 +0200 |
|---|---|---|
| committer | stonedDiscord <stoned@derpymail.org> | 2019-07-18 20:50:20 +0200 |
| commit | 7496df4dbc7cb2f38f9b3130073b834712a15576 (patch) | |
| tree | fdbecc86f1c89bf1be9cdd91b1b0004618838b6a /webAO/client.js | |
| parent | 7e6409f36cb0f39b8974c737d7b81ccffb6c06f0 (diff) | |
Revert "Revert "Revert "remove deprecated client_background that was blocking the scrollbar somehow"""
This reverts commit b8f4c65312e8c8b1ccc081d59288e6d6a38b7911.
Diffstat (limited to 'webAO/client.js')
| -rw-r--r-- | webAO/client.js | 4 |
1 files changed, 4 insertions, 0 deletions
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"; |
