Skip to content

Commit 2024729

Browse files
committed
Make default language less aggressive
1 parent d01b275 commit 2024729

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

CalendarHarmony.gs

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ var weekdays_only = false;
55
var color = CalendarApp.EventColor.PALE_RED;
66

77
/* Advanced Settings */
8-
var eventPrefix="BOOKED"; // update this to the text you'd like to appear in the new events created in primary calendar
9-
var default_very_private = true;
8+
var eventPrefix="Blocked"; // update this to the text you'd like to appear in the new events created in primary calendar
9+
var default_very_private = false;
1010
var sync_lock_seconds = 60;
1111
var logging = true;
1212
var warning = true;

Events.gs

+4-5
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
1-
21
function copyEventSummary(event) {
3-
if (event.visibility == "private" || default_very_private) {
4-
return eventPrefix+" (Private)";
2+
if (event.visibility == 'private' || event.visibility == undefined && default_very_private) {
3+
return eventPrefix;//+" (Private)";
54
} else {
65
return eventPrefix+" ("+event.summary+")";
76
}
87
}
98

109
function copyEventDescription(event) {
11-
if (event.visibility == "private" || default_very_private) {
12-
return "Private";
10+
if (event.visibility == "public" && default_very_private) {
11+
return "";
1312
} else {
1413
return event.description;
1514
}

0 commit comments

Comments
 (0)