From 04274e53fa8cefaf77678a72538de55cb3981de9 Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Wed, 26 Nov 2025 10:45:48 +0100 Subject: [PATCH] :paperclip: Fix advanced compilation warnings related to jsdoc --- frontend/src/app/util/clipboard.js | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/frontend/src/app/util/clipboard.js b/frontend/src/app/util/clipboard.js index 96f4080a7e..0322829e41 100644 --- a/frontend/src/app/util/clipboard.js +++ b/frontend/src/app/util/clipboard.js @@ -67,15 +67,17 @@ function filterAllowedTypes(options) { * @param {string} type * @returns {boolean} */ - return function filter(type) { + function filter(type) { if ( (!("allowHTMLPaste" in options) || !options["allowHTMLPaste"]) && - type === "text/html" + type === "text/html" ) { return false; } return allowedTypes.includes(type); }; + + return filter; } /** @@ -85,19 +87,22 @@ function filterAllowedTypes(options) { * @returns {Function} */ function filterAllowedItems(options) { + /** * @param {DataTransferItem} * @returns {boolean} */ - return function filter(item) { + function filter(item) { if ( (!("allowHTMLPaste" in options) || !options["allowHTMLPaste"]) && - item.type === "text/html" + item.type === "text/html" ) { return false; } return allowedTypes.includes(item.type); }; + + return filter; } /**