mirror of
https://github.com/internetarchive/brozzler.git
synced 2025-11-29 03:36:49 -05:00
Fix workaround
This commit is contained in:
parent
a19d8c7814
commit
89d06af104
1 changed files with 2 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue