Skip to content

Commit 420133a

Browse files
authored
Implement the reload() method on the WindowManager (#294)
1 parent 806dcd9 commit 420133a

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

src/Facades/Window.php

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
* @method static void resize($width, $height, $id = null)
1212
* @method static void position($x, $y, $animated = false, $id = null)
1313
* @method static void alwaysOnTop($alwaysOnTop = true, $id = null)
14+
* @method static void reload($id = null)
1415
*/
1516
class Window extends Facade
1617
{

src/Windows/WindowManager.php

+7
Original file line numberDiff line numberDiff line change
@@ -71,4 +71,11 @@ public function maximize($id = null): void
7171
'id' => $id ?? $this->detectId(),
7272
]);
7373
}
74+
75+
public function reload($id = null): void
76+
{
77+
$this->client->post('window/reload', [
78+
'id' => $id ?? $this->detectId(),
79+
]);
80+
}
7481
}

0 commit comments

Comments
 (0)