From 0cc98af2c1da3bd6a7bc9fdf3ee3fb0cfc540c7e Mon Sep 17 00:00:00 2001 From: dgtlmoon Date: Thu, 30 Oct 2025 11:02:55 +0100 Subject: [PATCH] wip --- changedetectionio/static/js/diff-overview.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/changedetectionio/static/js/diff-overview.js b/changedetectionio/static/js/diff-overview.js index e1508aa9..201f770d 100644 --- a/changedetectionio/static/js/diff-overview.js +++ b/changedetectionio/static/js/diff-overview.js @@ -27,13 +27,15 @@ $(document).ready(function () { } } - const article = $('.highlightable-filter')[0]; + const article = $('#difference')[0]; // We could also add the 'touchend' event for touch devices, but since // most iOS/Android browsers already show a dialog when you select // text (often with a Share option) we'll skip that - article.addEventListener('mouseup', dragTextHandler, false); - article.addEventListener('mousedown', clean, false); + if (article) { + article.addEventListener('mouseup', dragTextHandler, false); + article.addEventListener('mousedown', clean, false); + } $('#highlightSnippetActions button').bind('click', function (e) {