Skip to content

Commit

Permalink
set default background by reading value from body
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandredevely committed Mar 8, 2024
1 parent 855059b commit 0769f7e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/broadway-vnc.js
Original file line number Diff line number Diff line change
Expand Up @@ -451,8 +451,8 @@ export default function BroadwayVNC() {
rfb._canvas.id = 'noVNC_canvas';

//
// set default background
rfb._screen.style.background = '#6ec6f0';
// set default background by reading value from body
rfb._screen.style.background = window.getComputedStyle(document.body).getPropertyValue('background-color');
rfb._screenSize = function () {
const h = this._screen.offsetHeight - getTopAndDockHeight();
return {
Expand Down

0 comments on commit 0769f7e

Please sign in to comment.