Skip to content

Commit 3af4464

Browse files
committed
Turn Image objects to JSON objects
Update web/index.ts to turn image to JSON objects and stringify them.
1 parent 49caa52 commit 3af4464

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

web/index.ts

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -337,15 +337,10 @@ const App = (_: any, state: AppState, setState: SetState) => {
337337
url.searchParams.append('fontFamily', fontFamily)
338338
url.searchParams.append('fontSize', fontSize)
339339

340-
for (let image of images) {
341-
url.searchParams.append('images', image)
342-
}
343-
for (let width of widths) {
344-
url.searchParams.append('widths', width)
345-
}
346-
for (let height of heights) {
347-
url.searchParams.append('heights', height)
348-
}
340+
url.searchParams.append(
341+
'imageObj',
342+
JSON.stringify({ images: images, widths: widths, heights: heights })
343+
)
349344

350345
return H(
351346
'div',

0 commit comments

Comments
 (0)