aboutsummaryrefslogtreecommitdiffstats
path: root/web
diff options
context:
space:
mode:
authorTulir Asokan <tulir@maunium.net>2024-06-19 14:25:04 +0300
committerTulir Asokan <tulir@maunium.net>2024-06-19 14:29:21 +0300
commit333567f481e60443360aa7199d481e1a45b3a523 (patch)
tree34c0c0c03b70da3e53a8496170bcdffd85f17b11 /web
parent125d057e447ef62fddbcda40c8ea4c7faee7082a (diff)
Convert gif width/height to numbers
Diffstat (limited to 'web')
-rw-r--r--web/src/giphy.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/web/src/giphy.js b/web/src/giphy.js
index 3e804bc..35172bb 100644
--- a/web/src/giphy.js
+++ b/web/src/giphy.js
@@ -68,9 +68,9 @@ export class GiphySearchTab extends Component {
widgetAPI.sendSticker({
"body": gif.title,
"info": {
- "h": gif.images.original.height,
- "w": gif.images.original.width,
- "size": gif.images.original.size,
+ "h": +gif.images.original.height,
+ "w": +gif.images.original.width,
+ "size": +gif.images.original.size,
"mimetype": "image/webp",
},
"msgtype": "m.image",
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage