Skip to content

Commit 3236f01

Browse files
authored
Merge branch 'main' into feat-preventNavigation
2 parents 89be1df + 1c120f9 commit 3236f01

File tree

6 files changed

+16
-6
lines changed

6 files changed

+16
-6
lines changed

.github/workflows/fix-php-code-style-issues.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,20 +20,20 @@ jobs:
2020

2121
steps:
2222
- name: Checkout code
23-
uses: actions/checkout@v4
23+
uses: actions/checkout@v5
2424
with:
2525
ref: ${{ github.head_ref || github.sha }}
2626

2727
- name: Check PHP code style issues
2828
if: github.event_name == 'push'
29-
uses: aglipanci/laravel-pint-action@2.5
29+
uses: aglipanci/laravel-pint-action@2.6
3030
with:
3131
verboseMode: true
3232
testMode: true
3333

3434
- name: Fix PHP code style issues
3535
if: github.event_name == 'pull_request'
36-
uses: aglipanci/laravel-pint-action@2.5
36+
uses: aglipanci/laravel-pint-action@2.6
3737

3838
- name: Commit changes
3939
if: github.event_name == 'pull_request'

.github/workflows/phpstan.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
steps:
1919

2020
- name: Checkout code
21-
uses: actions/checkout@v4
21+
uses: actions/checkout@v5
2222

2323
- name: Setup PHP
2424
uses: shivammathur/setup-php@v2

.github/workflows/run-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121

2222
steps:
2323
- name: Checkout code
24-
uses: actions/checkout@v4
24+
uses: actions/checkout@v5
2525

2626
- name: Setup PHP
2727
uses: shivammathur/setup-php@v2

.github/workflows/update-changelog.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313

1414
steps:
1515
- name: Checkout code
16-
uses: actions/checkout@v4
16+
uses: actions/checkout@v5
1717
with:
1818
ref: main
1919

src/Facades/Window.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
* @method static void zoomFactor(float $zoomFactor = 1.0)
2121
* @method static void preventLeaveDomain(bool $preventLeaveDomain = true)
2222
* @method static void preventLeavePage(bool $preventLeavePage = true): self
23+
* @method static void suppressNewWindows()
2324
*/
2425
class Window extends Facade
2526
{

src/Windows/Window.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,8 @@ class Window
7474

7575
protected bool $preventLeavePage = false;
7676

77+
protected bool $suppressNewWindows = false;
78+
7779
public function __construct(string $id)
7880
{
7981
$this->id = $id;
@@ -357,6 +359,12 @@ public function preventLeavePage(bool $preventLeavePage = true): self
357359
{
358360
$this->preventLeavePage = $preventLeavePage;
359361

362+
}
363+
364+
public function suppressNewWindows(): self
365+
{
366+
$this->suppressNewWindows = true;
367+
360368
return $this;
361369
}
362370

@@ -401,6 +409,7 @@ public function toArray()
401409
'zoomFactor' => $this->zoomFactor,
402410
'preventLeaveDomain' => $this->preventLeaveDomain,
403411
'preventLeavePage' => $this->preventLeavePage,
412+
'suppressNewWindows' => $this->suppressNewWindows,
404413
];
405414
}
406415

0 commit comments

Comments
 (0)