From 89d06af1049ecbdaec4928899966a4c8e23bb9d3 Mon Sep 17 00:00:00 2001 From: TheTechRobo Date: Sat, 9 Aug 2025 23:23:23 -0400 Subject: [PATCH] Fix workaround --- brozzler/browser.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/brozzler/browser.py b/brozzler/browser.py index abfab84..0ca0f67 100644 --- a/brozzler/browser.py +++ b/brozzler/browser.py @@ -277,12 +277,12 @@ class WebsockReceiverThread(threading.Thread): "params" in message and "type" in message["params"] and "frameId" in message["params"] - and message["params"]["type"] != "Document" + and message["params"]["type"] == "Document" ): if self.initial_document is None: self.initial_document = message["params"]["frameId"] return self.initial_document == message["params"]["frameId"] - return False + return True def _handle_message(self, websock, json_message): message = json.loads(json_message)