diff --git a/copyparty/web/browser.js b/copyparty/web/browser.js index 85eae304..91b2b9e6 100644 --- a/copyparty/web/browser.js +++ b/copyparty/web/browser.js @@ -138,6 +138,9 @@ var pbar = (function () { var grad = null; r.drawbuf = function () { + if (!mp.au) + return; + var cs = getComputedStyle(r.bcan); var sw = parseInt(cs['width']); var sh = parseInt(cs['height']); @@ -164,6 +167,9 @@ var pbar = (function () { } }; r.drawpos = function () { + if (!mp.au) + return; + var cs = getComputedStyle(r.bcan); var sw = parseInt(cs['width']); var sh = parseInt(cs['height']);