From e5b3d2a312e49017706dbeb15da4fe5e19850e34 Mon Sep 17 00:00:00 2001 From: ed Date: Sat, 6 Nov 2021 20:56:23 +0100 Subject: [PATCH] dont hilight huge files --- copyparty/web/browser.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/copyparty/web/browser.js b/copyparty/web/browser.js index ca790c6d..3302ae09 100644 --- a/copyparty/web/browser.js +++ b/copyparty/web/browser.js @@ -2436,6 +2436,9 @@ var showfile = (function () { catch (ex) { } } + if (txt.length > 1024 * 256) + fun = function (el) { }; + qsr('#doc'); var el = mknod('pre'); el.setAttribute('id', 'doc');