File tree 1 file changed +15
-0
lines changed
1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -76,6 +76,21 @@ function buildCustomSnoozeMenus() {
76
76
} ) ;
77
77
}
78
78
79
+ // The main idea for hooking after the event which creates the snooze popups is the following sequence of calls:
80
+ // CalAlarmMonitor.jsm: function onAlarm(aItem, aAlarm)
81
+ // calAlarmWindow.addWidgetFor(aItem, aAlarm);
82
+ // calendar-alarm-dialog.js: function addWidgetFor(aItem, aAlarm)
83
+ // let widget = document.createXULElement("richlistitem", {
84
+ // is: "calendar-alarm-widget-richlistitem",
85
+ // });
86
+ // let alarmRichlist = document.getElementById("alarm-richlist");
87
+ //
88
+ // // Add widgets sorted by start date ascending
89
+ // ...
90
+ // setupTitle()
91
+ // document.title = title.replace("#1", reminders);
92
+ // So we wait for the assignment to document.title to happen and hook that event via mutation observers.
93
+
79
94
function mutationCallback ( mutations ) {
80
95
if ( mutations . length > 0 ) {
81
96
buildCustomSnoozeMenus ( ) ;
You can’t perform that action at this time.
0 commit comments