Bug 1665831 - Fix two calendar UI start-up errors. r=pmorris

Differential Revision: https://phabricator.services.mozilla.com/D90650

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Geoff Lankow 2020-09-18 14:14:26 +00:00
Родитель 472225cef1
Коммит 4818c6215a
2 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -25,7 +25,7 @@ var calendarTabMonitor = {
// type definitions. To make sure the commands are correctly disabled, // type definitions. To make sure the commands are correctly disabled,
// we want to update calendar/task commands when switching away from // we want to update calendar/task commands when switching away from
// those tabs. // those tabs.
if (aOldTab.mode.name == "calendar" || aOldTab.mode.name == "task") { if (aOldTab?.mode.name == "calendar" || aOldTab?.mode.name == "task") {
calendarController.updateCommands(); calendarController.updateCommands();
calendarController2.updateCommands(); calendarController2.updateCommands();
} }

Просмотреть файл

@ -43,7 +43,7 @@ var gUnifinderNeedsRefresh = true;
function isUnifinderHidden() { function isUnifinderHidden() {
let tabmail = document.getElementById("tabmail"); let tabmail = document.getElementById("tabmail");
return ( return (
tabmail.currentTabInfo.mode.type != "calendar" || tabmail.currentTabInfo?.mode.type != "calendar" ||
document.getElementById("bottom-events-box").hidden document.getElementById("bottom-events-box").hidden
); );
} }