Skip to content

Commit a11b5df

Browse files
committed
prettier
1 parent cab7d3c commit a11b5df

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

examples/simple-server/src/ui-raw.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,9 @@ window.addEventListener("load", async () => {
131131
});
132132

133133
new ResizeObserver(() => {
134-
const rect = (document.body.parentElement ?? document.body).getBoundingClientRect();
134+
const rect = (
135+
document.body.parentElement ?? document.body
136+
).getBoundingClientRect();
135137
const width = Math.ceil(rect.width);
136138
const height = Math.ceil(rect.height);
137139
app.sendNotification<McpUiSizeChangeNotification>({

src/app.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,9 @@ export class App extends Protocol<Request, Notification, Result> {
174174
scheduled = true;
175175
requestAnimationFrame(() => {
176176
scheduled = false;
177-
const rect = (document.body.parentElement ?? document.body).getBoundingClientRect();
177+
const rect = (
178+
document.body.parentElement ?? document.body
179+
).getBoundingClientRect();
178180
const width = Math.ceil(rect.width);
179181
const height = Math.ceil(rect.height);
180182
this.sendSizeChange({ width, height });

0 commit comments

Comments
 (0)