We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a20ac2e commit a29f2b6Copy full SHA for a29f2b6
src/Windows/Window.php
@@ -11,7 +11,9 @@
11
class Window
12
{
13
use HasDimensions;
14
- use HasUrl;
+ use HasUrl {
15
+ HasUrl::url as defaultUrl;
16
+ }
17
use HasVibrancy;
18
19
protected bool $autoHideMenuBar = false;
@@ -77,6 +79,27 @@ public function title(string $title): self
77
79
78
80
$this->title = $title;
81
82
+ if (! $this instanceof PendingOpenWindow) {
83
+ $this->client->post('window/title', [
84
+ 'id' => $this->id,
85
+ 'title' => $title,
86
+ ]);
87
88
+
89
+ return $this;
90
91
92
+ public function url(string $url)
93
+ {
94
+ $this->defaultUrl($url);
95
96
97
+ $this->client->post('window/url', [
98
99
+ 'url' => $url,
100
101
102
103
return $this;
104
}
105
0 commit comments