From 53039750443dab086207a9948b4223b8afcd4bfb Mon Sep 17 00:00:00 2001 From: ralf Date: Sun, 12 Jan 2025 13:32:20 +0100 Subject: [PATCH] hopefully final fix for the 404 in mail attachments problem caused by typeof null !== 'undefined' :( --- api/js/jsapi/egw_links.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/js/jsapi/egw_links.js b/api/js/jsapi/egw_links.js index 5bf2a4fcc7..fbf65bfc66 100644 --- a/api/js/jsapi/egw_links.js +++ b/api/js/jsapi/egw_links.js @@ -146,7 +146,7 @@ egw.extend('links', egw.MODULE_GLOBAL, function() */ get_mime_info: function(_type, _app_or_num) { - if (typeof _app_or_num === 'undefined') _app_or_num = 1; + if (!_app_or_num) _app_or_num = 1; let wildcard_mime; for(const app of isNaN(_app_or_num) ? [_app_or_num] : Object.keys(link_registry)) {