diff --git a/projects/jupyter-server-ydoc/jupyter_server_ydoc/app.py b/projects/jupyter-server-ydoc/jupyter_server_ydoc/app.py index 2b8b0301..4527786e 100644 --- a/projects/jupyter-server-ydoc/jupyter_server_ydoc/app.py +++ b/projects/jupyter-server-ydoc/jupyter_server_ydoc/app.py @@ -91,13 +91,9 @@ def initialize_settings(self): ) def initialize_handlers(self): - self.serverapp.web_app.settings.setdefault( - "page_config_data", - { - "disableRTC": self.disable_rtc, - "serverSideExecution": self.server_side_execution, - }, - ) + page_config = self.serverapp.web_app.settings.setdefault("page_config_data", {}) + page_config.setdefault("disableRTC", self.disable_rtc) + page_config.setdefault("serverSideExecution", self.server_side_execution) # Set configurable parameters to YStore class for k, v in self.config.get(self.ystore_class.__name__, {}).items():