Skip to content

Commit bc2ec3b

Browse files
committed
Avoid adding again components when they are present
1 parent 1bc4f59 commit bc2ec3b

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

chrome/content/sogo-connector/calendar/calendar-overlay.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,13 @@ function SIOnCalendarOverlayLoad() {
239239
if (typeof(popup) == "undefined") {
240240
setTimeout(SIOnCalendarOverlayLoad, 100);
241241
return;
242-
}
242+
}
243+
244+
let beenhere = document.getElementById("list-calendars-context-sogo-acls");
245+
246+
if (beenhere != null) {
247+
return;
248+
}
243249

244250
let properties = document.getElementById("list-calendars-context-edit");
245251
//let showonly = document.getElementById("list-calendars-context-sogo-showonly");

0 commit comments

Comments
 (0)