Skip to content

Commit adc202e

Browse files
committed
bleh
1 parent 3566c97 commit adc202e

File tree

4 files changed

+5
-9
lines changed

4 files changed

+5
-9
lines changed

partykit.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"compatibilityDate": "2025-12-26",
66
"serve": {
77
"path": "public",
8-
"build": "src/client.js"
8+
"build": "src/client.js",
9+
"cors": "true"
910
}
1011
}

public/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@
110110

111111
currentStroke.push({ x, y });
112112

113-
ctx.lineWidth = 3;
113+
ctx.lineWidth = 2;
114114
ctx.lineCap = "round";
115115
ctx.lineTo(x, y);
116116
ctx.stroke();

src/client.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ function drawStroke(stroke) {
2626
const ctx = canvas.getContext("2d");
2727

2828
ctx.strokeStyle = stroke.color;
29-
ctx.lineWidth = 5;
29+
ctx.lineWidth = 2;
3030
ctx.lineCap = "round";
3131
ctx.beginPath();
3232

src/server.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,7 @@ export default class CanvasServer {
1717
}
1818

1919
async onRequest(req) {
20-
return new Response(null, {
21-
headers: {
22-
...HEADERS,
23-
"Content-Security-Policy": "frame-ancestors *",
24-
},
25-
});
20+
return new Response(null, { headers: HEADERS });
2621
}
2722

2823
async onConnect(connection) {

0 commit comments

Comments
 (0)