File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -60,6 +60,8 @@ class Window
60
60
61
61
protected array $ afterOpenCallbacks = [];
62
62
63
+ protected array $ webPreferences = [];
64
+
63
65
public function __construct (string $ id )
64
66
{
65
67
$ this ->id = $ id ;
@@ -270,6 +272,13 @@ public function kiosk($kiosk = true): static
270
272
return $ this ;
271
273
}
272
274
275
+ public function webPreferences (array $ preferences ): static
276
+ {
277
+ $ this ->webPreferences = $ preferences ;
278
+
279
+ return $ this ;
280
+ }
281
+
273
282
public function toArray ()
274
283
{
275
284
return [
@@ -305,6 +314,7 @@ public function toArray()
305
314
'kiosk ' => $ this ->kiosk ,
306
315
'autoHideMenuBar ' => $ this ->autoHideMenuBar ,
307
316
'transparent ' => $ this ->transparent ,
317
+ 'webPreferences ' => $ this ->webPreferences ,
308
318
];
309
319
}
310
320
You can’t perform that action at this time.
0 commit comments