From 4559857380317d768ff8394db711eb5c894aa1f8 Mon Sep 17 00:00:00 2001 From: lolcat Date: Tue, 8 Aug 2023 03:09:47 -0400 Subject: added brave image+video support --- static/client.js | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'static/client.js') diff --git a/static/client.js b/static/client.js index 545f0bc..89e9a5e 100644 --- a/static/client.js +++ b/static/client.js @@ -360,6 +360,23 @@ if(image_class !== null){ elem.getAttribute("data-json") ); + var imagesize = elem.getElementsByTagName("img")[0]; + + if(imagesize.complete){ + + var imagesize_w = imagesize.naturalWidth; + var imagesize_h = imagesize.naturalHeight; + } + + for(var i=0; i