From 38c3e974645fe980617a48e8b46cc44a8a2d7d64 Mon Sep 17 00:00:00 2001 From: mic Date: Wed, 22 Jan 2025 21:29:02 +0100 Subject: [PATCH] correctly showing the alert when there is an error opening the new calendar event dialog --- js/mzta-menus.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/mzta-menus.js b/js/mzta-menus.js index 4ac6618d..026e9623 100644 --- a/js/mzta-menus.js +++ b/js/mzta-menus.js @@ -283,7 +283,7 @@ export class mzta_Menus { if(result_openCalendarEventDialog == 'ok'){ return {ok:'1'}; } else { - browser.tabs.sendMessage(tabs[0].id, { command: "sendAlert", curr_tab_type: tabs[0].type, message: browser.i18n.getMessage("calendar_opening_dialog_error") + ": " + JSON.stringify(err) }); + browser.tabs.sendMessage(tabs[0].id, { command: "sendAlert", curr_tab_type: tabs[0].type, message: browser.i18n.getMessage("calendar_opening_dialog_error") }); return {ok:'0'}; } break; // Get a calendar event info - END