Skip to content

Commit f193d94

Browse files
committed
version 1.0.4 which resolves missing 'suppress_origin' args in some websocket.create_connection()
1 parent b9dc829 commit f193d94

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

PyChromeDevTools/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,11 @@ def connect_targetID(self, targetID):
6767
try:
6868
wsurl = f'ws://{self.host}:{self.port}/devtools/page/{targetID}'
6969
self.close()
70-
self.ws = websocket.create_connection(wsurl)
70+
self.ws = websocket.create_connection(wsurl, suppress_origin=self.suppress_origin)
7171
self.ws.settimeout(self.timeout)
7272
except Exception:
7373
wsurl = self.tabs[0]['webSocketDebuggerUrl']
74-
self.ws = websocket.create_connection(wsurl)
74+
self.ws = websocket.create_connection(wsurl, suppress_origin=self.suppress_origin)
7575
self.ws.settimeout(self.timeout)
7676

7777
def close(self):

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@
77
name="PyChromeDevTools",
88
description="PyChromeDevTools : Interact with Google Chrome using the Chrome DevTools Protocol.",
99
license="Apache License 2.0",
10-
version="1.0.3",
10+
version="1.0.4",
1111
author="Martino Trevisan",
1212
author_email="[email protected]",
1313
maintainer="Martino Trevisan",
1414
maintainer_email="[email protected]",
1515
url="https://github.com/marty90/PyChromeDevTools",
16-
download_url = 'https://github.com/marty90/PyChromeDevTools/tarball/1.0.3',
16+
download_url = 'https://github.com/marty90/PyChromeDevTools/tarball/1.0.4',
1717
packages=['PyChromeDevTools'],
1818
install_requires=['requests', 'websocket-client']
1919
)

0 commit comments

Comments
 (0)