From acd64368244688af1ac286b3ffb1693b9cd94c83 Mon Sep 17 00:00:00 2001 From: Simon Li Date: Mon, 15 Jul 2024 09:55:03 +0100 Subject: [PATCH] Try resizeSession instead of scaleViewport --- js/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/index.js b/js/index.js index 564a6a83..9223185a 100644 --- a/js/index.js +++ b/js/index.js @@ -62,8 +62,8 @@ function connect() { rfb.addEventListener("connect", connectedToServer); rfb.addEventListener("disconnect", disconnectedFromServer); - // Scale our viewport so the user doesn't have to scroll - rfb.scaleViewport = true; + // Resize our viewport so the user doesn't have to scroll + rfb.resizeSession = true; // Use a CSS variable to set background color rfb.background = "var(--jupyter-medium-dark-grey)";