From 35b75c3db11f3055f4136472e168376af85a6ce6 Mon Sep 17 00:00:00 2001 From: ed Date: Sun, 26 Nov 2023 20:22:59 +0000 Subject: [PATCH] avoid palemoon bug on dragging a text selection; "permission denied to access property preventDefault" --- copyparty/web/up2k.js | 2 +- copyparty/web/util.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/copyparty/web/up2k.js b/copyparty/web/up2k.js index 795c496a..1917302c 100644 --- a/copyparty/web/up2k.js +++ b/copyparty/web/up2k.js @@ -1043,7 +1043,7 @@ function up2k_init(subtle) { clmod(ebi(v), 'hl', 1); } function offdrag(e) { - ev(e); + noope(e); var v = this.getAttribute('v'); if (v) diff --git a/copyparty/web/util.js b/copyparty/web/util.js index 20b04e86..822b958f 100644 --- a/copyparty/web/util.js +++ b/copyparty/web/util.js @@ -295,7 +295,7 @@ function ev(e) { function noope(e) { - ev(e); + try { ev(e); } catch (ex) { } }