Skip to content

Commit a968651

Browse files
committed
Add webPreferences support
1 parent 840f88d commit a968651

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/Windows/Window.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@ class Window
6060

6161
protected array $afterOpenCallbacks = [];
6262

63+
protected array $webPreferences = [];
64+
6365
public function __construct(string $id)
6466
{
6567
$this->id = $id;
@@ -270,6 +272,13 @@ public function kiosk($kiosk = true): static
270272
return $this;
271273
}
272274

275+
public function webPreferences(array $preferences): static
276+
{
277+
$this->webPreferences = $preferences;
278+
279+
return $this;
280+
}
281+
273282
public function toArray()
274283
{
275284
return [
@@ -305,6 +314,7 @@ public function toArray()
305314
'kiosk' => $this->kiosk,
306315
'autoHideMenuBar' => $this->autoHideMenuBar,
307316
'transparent' => $this->transparent,
317+
'webPreferences' => $this->webPreferences,
308318
];
309319
}
310320

0 commit comments

Comments
 (0)