mirror of
https://github.com/turt2live/matrix-dimension.git
synced 2024-10-01 05:05:53 +00:00
Merge pull request #397 from yingziwu/master
Fix: Bad JSON value: float
This commit is contained in:
commit
404371fe9d
@ -46,13 +46,13 @@ export class ScalarWidgetApi {
|
||||
url: sticker.thumbnail.mxc,
|
||||
info: {
|
||||
mimetype: sticker.image.mimetype,
|
||||
w: sticker.thumbnail.width / 2,
|
||||
h: sticker.thumbnail.height / 2,
|
||||
w: Math.round(sticker.thumbnail.width / 2),
|
||||
h: Math.round(sticker.thumbnail.height / 2),
|
||||
thumbnail_url: sticker.thumbnail.mxc,
|
||||
thumbnail_info: {
|
||||
mimetype: sticker.image.mimetype,
|
||||
w: sticker.thumbnail.width / 2,
|
||||
h: sticker.thumbnail.height / 2,
|
||||
w: Math.round(sticker.thumbnail.width / 2),
|
||||
h: Math.round(sticker.thumbnail.height / 2),
|
||||
},
|
||||
|
||||
// This has to be included in the info object so it makes it to the event
|
||||
|
Loading…
Reference in New Issue
Block a user