browser: fix json separators

This commit is contained in:
Misty De Méo 2025-07-30 13:43:59 -07:00 committed by Misty De Méo
parent 08bb09ff06
commit 5ee31cd879

View file

@ -256,7 +256,7 @@ class WebsockReceiverThread(threading.Thread):
method="Page.handleJavaScriptDialog",
params={"accept": accept},
),
separators=",:",
separators=(",", ":"),
)
)
@ -363,7 +363,7 @@ class Browser:
def send_to_chrome(self, suppress_logging=False, **kwargs):
msg_id = next(self._command_id)
kwargs["id"] = msg_id
msg = json.dumps(kwargs, separators=",:")
msg = json.dumps(kwargs, separators=(",", ":"))
self.logger.debug(
"sending message",
websock=self.websock,