From 877fb3c50c4ae15c38f05a4a5962dfcdacdbc999 Mon Sep 17 00:00:00 2001 From: bb2 <23148629+bb2@users.noreply.github.com> Date: Sat, 23 May 2026 21:26:45 +0800 Subject: [PATCH] Fix JS Type Check error (v2) --- radicale/web/internal_data/js/utils/url_text.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/radicale/web/internal_data/js/utils/url_text.js b/radicale/web/internal_data/js/utils/url_text.js index 20b38246..67bae393 100644 --- a/radicale/web/internal_data/js/utils/url_text.js +++ b/radicale/web/internal_data/js/utils/url_text.js @@ -42,7 +42,7 @@ export class UrlTextHandler { // Only encode the URL if the entire text is selected. if (this._element) { this._element.addEventListener("copy", (event) => { - const selectedText = window.getSelection().toString(); + const selectedText = window.getSelection()?.toString(); const totalText = this._element.value; // Check if the selected text length matches the total text length.