File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change 18
18
* @method static void maximize($id = null)
19
19
* @method static void minimize($id = null)
20
20
* @method static void zoomFactor(float $zoomFactor = 1.0)
21
+ * @method static void suppressNewWindows()
21
22
*/
22
23
class Window extends Facade
23
24
{
Original file line number Diff line number Diff line change @@ -70,6 +70,8 @@ class Window
70
70
71
71
protected float $ zoomFactor = 1.0 ;
72
72
73
+ protected bool $ suppressNewWindows = false ;
74
+
73
75
public function __construct (string $ id )
74
76
{
75
77
$ this ->id = $ id ;
@@ -342,6 +344,13 @@ public function zoomFactor(float $zoomFactor = 1.0): self
342
344
return $ this ;
343
345
}
344
346
347
+ public function suppressNewWindows (): self
348
+ {
349
+ $ this ->suppressNewWindows = true ;
350
+
351
+ return $ this ;
352
+ }
353
+
345
354
public function toArray ()
346
355
{
347
356
return [
@@ -381,6 +390,7 @@ public function toArray()
381
390
'transparent ' => $ this ->transparent ,
382
391
'webPreferences ' => $ this ->webPreferences ,
383
392
'zoomFactor ' => $ this ->zoomFactor ,
393
+ 'suppressNewWindows ' => $ this ->suppressNewWindows ,
384
394
];
385
395
}
386
396
You can’t perform that action at this time.
0 commit comments