optional height and width
This commit is contained in:
parent
3c83946b4b
commit
39375d7478
@ -190,8 +190,8 @@ class MainHandler(tornado.web.RequestHandler):
|
||||
self.set_status(404)
|
||||
self.write("HTML template missing.")
|
||||
def handle_embed(self, provider):
|
||||
width = self.get_query_argument("maxwidth")
|
||||
height = self.get_query_argument("maxheight")
|
||||
width = self.get_query_argument("maxwidth", None)
|
||||
height = self.get_query_argument("maxheight", None)
|
||||
if isinstance(width, str) and isinstance(height, str):
|
||||
pass
|
||||
if isinstance(width, str):
|
||||
|
Loading…
Reference in New Issue
Block a user