PlaywrightCapture 1.25.7__tar.gz → 1.25.8__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: PlaywrightCapture
3
- Version: 1.25.7
3
+ Version: 1.25.8
4
4
  Summary: A simple library to capture websites using playwright
5
5
  Home-page: https://github.com/Lookyloo/PlaywrightCapture
6
6
  License: BSD-3-Clause
@@ -411,6 +411,9 @@ class Capture():
411
411
  if context_vp := device_context_settings.pop('viewport', self._default_viewport):
412
412
  # Always true, but we also always want to pop it.
413
413
  vp = self.viewport if self.viewport else context_vp
414
+ else:
415
+ ua = self.user_agent
416
+ vp = self.viewport
414
417
 
415
418
  self.context = await self.browser.new_context(
416
419
  record_har_path=self._temp_harfile.name,
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "PlaywrightCapture"
3
- version = "1.25.7"
3
+ version = "1.25.8"
4
4
  description = "A simple library to capture websites using playwright"
5
5
  authors = ["Raphaël Vinot <raphael.vinot@circl.lu>"]
6
6
  license = "BSD-3-Clause"