From c8f14818694a8a057be6e27b23ea20b90738622b Mon Sep 17 00:00:00 2001 From: Himura Kazuto Date: Mon, 6 Nov 2017 22:44:54 +0300 Subject: [PATCH] trying to support resize I'm not so good in JS to write withour being able to test, but that's what I think should work --- app.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app.js b/app.js index 30e61f4..ab9f509 100644 --- a/app.js +++ b/app.js @@ -60,9 +60,9 @@ app.get('/oembed',function (req,res) embedJSON["provider_url"] = "https://mathembed.com" embedJSON["type"] = "rich" embedJSON["version"] = "1.0" - embedJSON["width"] = 400 - embedJSON["height"] = 200 - embedJSON["html"] = "" + embedJSON["width"] = 400 if !req.query.width else req.query.width + embedJSON["height"] = 200 if !req.query.height else req.query.height + embedJSON["html"] = "" res.json(embedJSON) })