From 515eec899a3a64ed9c3257c7d93d80051670a01a Mon Sep 17 00:00:00 2001 From: icxes Date: Mon, 30 Mar 2026 22:59:48 +0300 Subject: [PATCH] i don't even know man --- copyparty/web/browser.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/copyparty/web/browser.js b/copyparty/web/browser.js index bf5fbae6..69b1ab76 100644 --- a/copyparty/web/browser.js +++ b/copyparty/web/browser.js @@ -7853,7 +7853,7 @@ var treectl = (function () { function autogrid(res) { var icount = 0; var fcount = res.files.length; - var iext = new Set(jread('ga_ext', "jpg,jpeg,png,gif,webp,webm,mp4").split(',')); + var iext = new Set((sread('ga_ext') || "jpg,jpeg,png,gif,webp,webm,mp4").split(',')); for (var a = 0; a < fcount; a++) { var fext = res.files[a].ext ? res.files[a].ext.toLowerCase() : ''; @@ -7862,7 +7862,7 @@ var treectl = (function () { } var iratio = fcount > 0 ? (icount / fcount) * 100 : 0; - var threshold = jread('ga_thresh', 70); + var threshold = sread('ga_thresh') || 70; if (iratio >= threshold) thegrid.en = true;