From b6bf6d5f7a5c10a00d161daff9b82fcfdf3d508e Mon Sep 17 00:00:00 2001 From: ed Date: Sun, 25 Jan 2026 21:40:16 +0000 Subject: [PATCH] shares: fix lifetime-extend; closes #1248 --- copyparty/web/shares.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/copyparty/web/shares.js b/copyparty/web/shares.js index 783b4561..b0669318 100644 --- a/copyparty/web/shares.js +++ b/copyparty/web/shares.js @@ -16,7 +16,7 @@ function rm() { } function bump() { - var k = this.closest('tr').getElementsByTagName('a')[2].getAttribute('k'), + var k = this.closest('tr').querySelector('a[k]').getAttribute('k'), u = SR + '/?skey=' + uricom_enc(k) + '&eshare=' + this.value, xhr = new XHR();