correctly showing the alert when there is an error opening the new calendar event dialog

This commit is contained in:
mic 2025-01-22 21:29:02 +01:00
parent 16decf1185
commit 38c3e97464

View file

@ -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