diff --git a/copyparty/httpcli.py b/copyparty/httpcli.py index 2a61b2c5..a81a9b87 100644 --- a/copyparty/httpcli.py +++ b/copyparty/httpcli.py @@ -1703,7 +1703,7 @@ class HttpCli(object): title=self.uparam["wopi"], url=url, atoken=atoken, - ttl=session["expires"], + ttl=int(session["expires"] * 1000), ).encode("utf-8", "replace") self.reply(html, 200, "text/html; charset=utf-8") diff --git a/copyparty/web/wopi.html b/copyparty/web/wopi.html index 80c8a849..423f80cb 100644 --- a/copyparty/web/wopi.html +++ b/copyparty/web/wopi.html @@ -27,7 +27,7 @@ body {