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.set_status(404)
|
||||||
self.write("HTML template missing.")
|
self.write("HTML template missing.")
|
||||||
def handle_embed(self, provider):
|
def handle_embed(self, provider):
|
||||||
width = self.get_query_argument("maxwidth")
|
width = self.get_query_argument("maxwidth", None)
|
||||||
height = self.get_query_argument("maxheight")
|
height = self.get_query_argument("maxheight", None)
|
||||||
if isinstance(width, str) and isinstance(height, str):
|
if isinstance(width, str) and isinstance(height, str):
|
||||||
pass
|
pass
|
||||||
if isinstance(width, str):
|
if isinstance(width, str):
|
||||||
|
Loading…
Reference in New Issue
Block a user