add-to-calendar-button 2.6.10 → 2.6.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/css/atcb-3d.css +1 -1
- package/assets/css/atcb-date.css +1 -1
- package/assets/css/atcb-flat.css +1 -1
- package/assets/css/atcb-neumorphism.css +1 -1
- package/assets/css/atcb-round.css +1 -1
- package/assets/css/atcb-text.css +1 -1
- package/assets/css/atcb.css +1 -1
- package/dist/atcb-no-pro-unstyle.js +4 -4
- package/dist/atcb-no-pro.js +4 -4
- package/dist/atcb-unstyle.js +4 -4
- package/dist/atcb.js +4 -4
- package/dist/commonjs/index.js +4 -4
- package/dist/commonjs/no-pro/index.js +4 -4
- package/dist/commonjs/no-pro-unstyle/index.js +4 -4
- package/dist/commonjs/unstyle/index.js +4 -4
- package/dist/module/index.js +4 -4
- package/dist/module/no-pro/index.js +4 -4
- package/dist/module/no-pro-unstyle/index.js +4 -4
- package/dist/module/unstyle/index.js +4 -4
- package/package.json +3 -3
package/assets/css/atcb-3d.css
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
*
|
|
6
6
|
* Style: 3D
|
|
7
7
|
*
|
|
8
|
-
* Version: 2.6.
|
|
8
|
+
* Version: 2.6.11
|
|
9
9
|
* Creator: Jens Kuerschner (https://jekuer.com)
|
|
10
10
|
* Project: https://github.com/add2cal/add-to-calendar-button
|
|
11
11
|
* License: Elastic License 2.0 (ELv2) (https://github.com/add2cal/add-to-calendar-button/blob/main/LICENSE.txt)
|
package/assets/css/atcb-date.css
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
*
|
|
6
6
|
* Style: Date
|
|
7
7
|
*
|
|
8
|
-
* Version: 2.6.
|
|
8
|
+
* Version: 2.6.11
|
|
9
9
|
* Creator: Jens Kuerschner (https://jekuer.com)
|
|
10
10
|
* Project: https://github.com/add2cal/add-to-calendar-button
|
|
11
11
|
* License: Elastic License 2.0 (ELv2) (https://github.com/add2cal/add-to-calendar-button/blob/main/LICENSE.txt)
|
package/assets/css/atcb-flat.css
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
*
|
|
6
6
|
* Style: Flat
|
|
7
7
|
*
|
|
8
|
-
* Version: 2.6.
|
|
8
|
+
* Version: 2.6.11
|
|
9
9
|
* Creator: Jens Kuerschner (https://jekuer.com)
|
|
10
10
|
* Project: https://github.com/add2cal/add-to-calendar-button
|
|
11
11
|
* License: Elastic License 2.0 (ELv2) (https://github.com/add2cal/add-to-calendar-button/blob/main/LICENSE.txt)
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
*
|
|
6
6
|
* Style: Neumorphism
|
|
7
7
|
*
|
|
8
|
-
* Version: 2.6.
|
|
8
|
+
* Version: 2.6.11
|
|
9
9
|
* Creator: Jens Kuerschner (https://jekuer.com)
|
|
10
10
|
* Project: https://github.com/add2cal/add-to-calendar-button
|
|
11
11
|
* License: Elastic License 2.0 (ELv2) (https://github.com/add2cal/add-to-calendar-button/blob/main/LICENSE.txt)
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
*
|
|
6
6
|
* Style: Round
|
|
7
7
|
*
|
|
8
|
-
* Version: 2.6.
|
|
8
|
+
* Version: 2.6.11
|
|
9
9
|
* Creator: Jens Kuerschner (https://jekuer.com)
|
|
10
10
|
* Project: https://github.com/add2cal/add-to-calendar-button
|
|
11
11
|
* License: Elastic License 2.0 (ELv2) (https://github.com/add2cal/add-to-calendar-button/blob/main/LICENSE.txt)
|
package/assets/css/atcb-text.css
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
*
|
|
6
6
|
* Style: Text
|
|
7
7
|
*
|
|
8
|
-
* Version: 2.6.
|
|
8
|
+
* Version: 2.6.11
|
|
9
9
|
* Creator: Jens Kuerschner (https://jekuer.com)
|
|
10
10
|
* Project: https://github.com/add2cal/add-to-calendar-button
|
|
11
11
|
* License: Elastic License 2.0 (ELv2) (https://github.com/add2cal/add-to-calendar-button/blob/main/LICENSE.txt)
|
package/assets/css/atcb.css
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
*
|
|
6
6
|
* Style: Default
|
|
7
7
|
*
|
|
8
|
-
* Version: 2.6.
|
|
8
|
+
* Version: 2.6.11
|
|
9
9
|
* Creator: Jens Kuerschner (https://jekuer.com)
|
|
10
10
|
* Project: https://github.com/add2cal/add-to-calendar-button
|
|
11
11
|
* License: Elastic License 2.0 (ELv2) (https://github.com/add2cal/add-to-calendar-button/blob/main/LICENSE.txt)
|
|
@@ -974,14 +974,14 @@ function tzlib_get_timezones(jsonType = false) {
|
|
|
974
974
|
* Add to Calendar Button
|
|
975
975
|
* ++++++++++++++++++++++
|
|
976
976
|
*
|
|
977
|
-
* Version: 2.6.
|
|
977
|
+
* Version: 2.6.11
|
|
978
978
|
* Creator: Jens Kuerschner (https://jekuer.com)
|
|
979
979
|
* Project: https://github.com/add2cal/add-to-calendar-button
|
|
980
980
|
* License: Elastic License 2.0 (ELv2) (https://github.com/add2cal/add-to-calendar-button/blob/main/LICENSE.txt)
|
|
981
981
|
* Note: DO NOT REMOVE THE COPYRIGHT NOTICE ABOVE!
|
|
982
982
|
*
|
|
983
983
|
*/
|
|
984
|
-
const atcbVersion = '2.6.
|
|
984
|
+
const atcbVersion = '2.6.11';
|
|
985
985
|
const atcbCssTemplate = {};
|
|
986
986
|
const atcbIsBrowser = () => {
|
|
987
987
|
if (typeof window === 'undefined') {
|
|
@@ -3178,11 +3178,11 @@ function atcb_subscribe_google(data, fileUrl) {
|
|
|
3178
3178
|
}
|
|
3179
3179
|
return encodeURIComponent(fileUrl);
|
|
3180
3180
|
})();
|
|
3181
|
-
if (atcbIsAndroid()) {
|
|
3181
|
+
if (atcbIsAndroid() || data.fakeAndroid) {
|
|
3182
3182
|
atcb_open_cal_url(data, 'google', 'intent://' + baseUrlApp + newFileUrl + '#Intent;scheme=https;package=com.google.android.calendar;end', true);
|
|
3183
3183
|
return;
|
|
3184
3184
|
}
|
|
3185
|
-
if (atcbIsiOS() && atcbIsSafari() && fileUrlRegex.test(fileUrl)) {
|
|
3185
|
+
if (((atcbIsiOS() && atcbIsSafari()) || data.fakeIOS) && fileUrlRegex.test(fileUrl)) {
|
|
3186
3186
|
atcb_open_cal_url(data, 'google', 'googlecalendar://' + baseUrlApp + newFileUrl, true);
|
|
3187
3187
|
return;
|
|
3188
3188
|
}
|
package/dist/atcb-no-pro.js
CHANGED
|
@@ -974,14 +974,14 @@ function tzlib_get_timezones(jsonType = false) {
|
|
|
974
974
|
* Add to Calendar Button
|
|
975
975
|
* ++++++++++++++++++++++
|
|
976
976
|
*
|
|
977
|
-
* Version: 2.6.
|
|
977
|
+
* Version: 2.6.11
|
|
978
978
|
* Creator: Jens Kuerschner (https://jekuer.com)
|
|
979
979
|
* Project: https://github.com/add2cal/add-to-calendar-button
|
|
980
980
|
* License: Elastic License 2.0 (ELv2) (https://github.com/add2cal/add-to-calendar-button/blob/main/LICENSE.txt)
|
|
981
981
|
* Note: DO NOT REMOVE THE COPYRIGHT NOTICE ABOVE!
|
|
982
982
|
*
|
|
983
983
|
*/
|
|
984
|
-
const atcbVersion = '2.6.
|
|
984
|
+
const atcbVersion = '2.6.11';
|
|
985
985
|
const atcbCssTemplate = {
|
|
986
986
|
if (typeof window === 'undefined') {
|
|
987
987
|
return false;
|
|
@@ -3177,11 +3177,11 @@ function atcb_subscribe_google(data, fileUrl) {
|
|
|
3177
3177
|
}
|
|
3178
3178
|
return encodeURIComponent(fileUrl);
|
|
3179
3179
|
})();
|
|
3180
|
-
if (atcbIsAndroid()) {
|
|
3180
|
+
if (atcbIsAndroid() || data.fakeAndroid) {
|
|
3181
3181
|
atcb_open_cal_url(data, 'google', 'intent://' + baseUrlApp + newFileUrl + '#Intent;scheme=https;package=com.google.android.calendar;end', true);
|
|
3182
3182
|
return;
|
|
3183
3183
|
}
|
|
3184
|
-
if (atcbIsiOS() && atcbIsSafari() && fileUrlRegex.test(fileUrl)) {
|
|
3184
|
+
if (((atcbIsiOS() && atcbIsSafari()) || data.fakeIOS) && fileUrlRegex.test(fileUrl)) {
|
|
3185
3185
|
atcb_open_cal_url(data, 'google', 'googlecalendar://' + baseUrlApp + newFileUrl, true);
|
|
3186
3186
|
return;
|
|
3187
3187
|
}
|
package/dist/atcb-unstyle.js
CHANGED
|
@@ -974,14 +974,14 @@ function tzlib_get_timezones(jsonType = false) {
|
|
|
974
974
|
* Add to Calendar Button
|
|
975
975
|
* ++++++++++++++++++++++
|
|
976
976
|
*
|
|
977
|
-
* Version: 2.6.
|
|
977
|
+
* Version: 2.6.11
|
|
978
978
|
* Creator: Jens Kuerschner (https://jekuer.com)
|
|
979
979
|
* Project: https://github.com/add2cal/add-to-calendar-button
|
|
980
980
|
* License: Elastic License 2.0 (ELv2) (https://github.com/add2cal/add-to-calendar-button/blob/main/LICENSE.txt)
|
|
981
981
|
* Note: DO NOT REMOVE THE COPYRIGHT NOTICE ABOVE!
|
|
982
982
|
*
|
|
983
983
|
*/
|
|
984
|
-
const atcbVersion = '2.6.
|
|
984
|
+
const atcbVersion = '2.6.11';
|
|
985
985
|
const atcbCssTemplate = {};
|
|
986
986
|
const atcbIsBrowser = () => {
|
|
987
987
|
if (typeof window === 'undefined') {
|
|
@@ -3884,11 +3884,11 @@ function atcb_subscribe_google(data, fileUrl) {
|
|
|
3884
3884
|
}
|
|
3885
3885
|
return encodeURIComponent(fileUrl);
|
|
3886
3886
|
})();
|
|
3887
|
-
if (atcbIsAndroid()) {
|
|
3887
|
+
if (atcbIsAndroid() || data.fakeAndroid) {
|
|
3888
3888
|
atcb_open_cal_url(data, 'google', 'intent://' + baseUrlApp + newFileUrl + '#Intent;scheme=https;package=com.google.android.calendar;end', true);
|
|
3889
3889
|
return;
|
|
3890
3890
|
}
|
|
3891
|
-
if (atcbIsiOS() && atcbIsSafari() && fileUrlRegex.test(fileUrl)) {
|
|
3891
|
+
if (((atcbIsiOS() && atcbIsSafari()) || data.fakeIOS) && fileUrlRegex.test(fileUrl)) {
|
|
3892
3892
|
atcb_open_cal_url(data, 'google', 'googlecalendar://' + baseUrlApp + newFileUrl, true);
|
|
3893
3893
|
return;
|
|
3894
3894
|
}
|
package/dist/atcb.js
CHANGED
|
@@ -974,14 +974,14 @@ function tzlib_get_timezones(jsonType = false) {
|
|
|
974
974
|
* Add to Calendar Button
|
|
975
975
|
* ++++++++++++++++++++++
|
|
976
976
|
*
|
|
977
|
-
* Version: 2.6.
|
|
977
|
+
* Version: 2.6.11
|
|
978
978
|
* Creator: Jens Kuerschner (https://jekuer.com)
|
|
979
979
|
* Project: https://github.com/add2cal/add-to-calendar-button
|
|
980
980
|
* License: Elastic License 2.0 (ELv2) (https://github.com/add2cal/add-to-calendar-button/blob/main/LICENSE.txt)
|
|
981
981
|
* Note: DO NOT REMOVE THE COPYRIGHT NOTICE ABOVE!
|
|
982
982
|
*
|
|
983
983
|
*/
|
|
984
|
-
const atcbVersion = '2.6.
|
|
984
|
+
const atcbVersion = '2.6.11';
|
|
985
985
|
const atcbCssTemplate = {
|
|
986
986
|
if (typeof window === 'undefined') {
|
|
987
987
|
return false;
|
|
@@ -3883,11 +3883,11 @@ function atcb_subscribe_google(data, fileUrl) {
|
|
|
3883
3883
|
}
|
|
3884
3884
|
return encodeURIComponent(fileUrl);
|
|
3885
3885
|
})();
|
|
3886
|
-
if (atcbIsAndroid()) {
|
|
3886
|
+
if (atcbIsAndroid() || data.fakeAndroid) {
|
|
3887
3887
|
atcb_open_cal_url(data, 'google', 'intent://' + baseUrlApp + newFileUrl + '#Intent;scheme=https;package=com.google.android.calendar;end', true);
|
|
3888
3888
|
return;
|
|
3889
3889
|
}
|
|
3890
|
-
if (atcbIsiOS() && atcbIsSafari() && fileUrlRegex.test(fileUrl)) {
|
|
3890
|
+
if (((atcbIsiOS() && atcbIsSafari()) || data.fakeIOS) && fileUrlRegex.test(fileUrl)) {
|
|
3891
3891
|
atcb_open_cal_url(data, 'google', 'googlecalendar://' + baseUrlApp + newFileUrl, true);
|
|
3892
3892
|
return;
|
|
3893
3893
|
}
|
package/dist/commonjs/index.js
CHANGED
|
@@ -7,14 +7,14 @@ const tzlibActions = require('timezones-ical-library');
|
|
|
7
7
|
* Add to Calendar Button
|
|
8
8
|
* ++++++++++++++++++++++
|
|
9
9
|
*
|
|
10
|
-
* Version: 2.6.
|
|
10
|
+
* Version: 2.6.11
|
|
11
11
|
* Creator: Jens Kuerschner (https://jekuer.com)
|
|
12
12
|
* Project: https://github.com/add2cal/add-to-calendar-button
|
|
13
13
|
* License: Elastic License 2.0 (ELv2) (https://github.com/add2cal/add-to-calendar-button/blob/main/LICENSE.txt)
|
|
14
14
|
* Note: DO NOT REMOVE THE COPYRIGHT NOTICE ABOVE!
|
|
15
15
|
*
|
|
16
16
|
*/
|
|
17
|
-
const atcbVersion = '2.6.
|
|
17
|
+
const atcbVersion = '2.6.11';
|
|
18
18
|
const atcbCssTemplate = {
|
|
19
19
|
if (typeof window === 'undefined') {
|
|
20
20
|
return false;
|
|
@@ -2916,11 +2916,11 @@ function atcb_subscribe_google(data, fileUrl) {
|
|
|
2916
2916
|
}
|
|
2917
2917
|
return encodeURIComponent(fileUrl);
|
|
2918
2918
|
})();
|
|
2919
|
-
if (atcbIsAndroid()) {
|
|
2919
|
+
if (atcbIsAndroid() || data.fakeAndroid) {
|
|
2920
2920
|
atcb_open_cal_url(data, 'google', 'intent://' + baseUrlApp + newFileUrl + '#Intent;scheme=https;package=com.google.android.calendar;end', true);
|
|
2921
2921
|
return;
|
|
2922
2922
|
}
|
|
2923
|
-
if (atcbIsiOS() && atcbIsSafari() && fileUrlRegex.test(fileUrl)) {
|
|
2923
|
+
if (((atcbIsiOS() && atcbIsSafari()) || data.fakeIOS) && fileUrlRegex.test(fileUrl)) {
|
|
2924
2924
|
atcb_open_cal_url(data, 'google', 'googlecalendar://' + baseUrlApp + newFileUrl, true);
|
|
2925
2925
|
return;
|
|
2926
2926
|
}
|
|
@@ -7,14 +7,14 @@ const tzlibActions = require('timezones-ical-library');
|
|
|
7
7
|
* Add to Calendar Button
|
|
8
8
|
* ++++++++++++++++++++++
|
|
9
9
|
*
|
|
10
|
-
* Version: 2.6.
|
|
10
|
+
* Version: 2.6.11
|
|
11
11
|
* Creator: Jens Kuerschner (https://jekuer.com)
|
|
12
12
|
* Project: https://github.com/add2cal/add-to-calendar-button
|
|
13
13
|
* License: Elastic License 2.0 (ELv2) (https://github.com/add2cal/add-to-calendar-button/blob/main/LICENSE.txt)
|
|
14
14
|
* Note: DO NOT REMOVE THE COPYRIGHT NOTICE ABOVE!
|
|
15
15
|
*
|
|
16
16
|
*/
|
|
17
|
-
const atcbVersion = '2.6.
|
|
17
|
+
const atcbVersion = '2.6.11';
|
|
18
18
|
const atcbCssTemplate = {
|
|
19
19
|
if (typeof window === 'undefined') {
|
|
20
20
|
return false;
|
|
@@ -2210,11 +2210,11 @@ function atcb_subscribe_google(data, fileUrl) {
|
|
|
2210
2210
|
}
|
|
2211
2211
|
return encodeURIComponent(fileUrl);
|
|
2212
2212
|
})();
|
|
2213
|
-
if (atcbIsAndroid()) {
|
|
2213
|
+
if (atcbIsAndroid() || data.fakeAndroid) {
|
|
2214
2214
|
atcb_open_cal_url(data, 'google', 'intent://' + baseUrlApp + newFileUrl + '#Intent;scheme=https;package=com.google.android.calendar;end', true);
|
|
2215
2215
|
return;
|
|
2216
2216
|
}
|
|
2217
|
-
if (atcbIsiOS() && atcbIsSafari() && fileUrlRegex.test(fileUrl)) {
|
|
2217
|
+
if (((atcbIsiOS() && atcbIsSafari()) || data.fakeIOS) && fileUrlRegex.test(fileUrl)) {
|
|
2218
2218
|
atcb_open_cal_url(data, 'google', 'googlecalendar://' + baseUrlApp + newFileUrl, true);
|
|
2219
2219
|
return;
|
|
2220
2220
|
}
|
|
@@ -7,14 +7,14 @@ const tzlibActions = require('timezones-ical-library');
|
|
|
7
7
|
* Add to Calendar Button
|
|
8
8
|
* ++++++++++++++++++++++
|
|
9
9
|
*
|
|
10
|
-
* Version: 2.6.
|
|
10
|
+
* Version: 2.6.11
|
|
11
11
|
* Creator: Jens Kuerschner (https://jekuer.com)
|
|
12
12
|
* Project: https://github.com/add2cal/add-to-calendar-button
|
|
13
13
|
* License: Elastic License 2.0 (ELv2) (https://github.com/add2cal/add-to-calendar-button/blob/main/LICENSE.txt)
|
|
14
14
|
* Note: DO NOT REMOVE THE COPYRIGHT NOTICE ABOVE!
|
|
15
15
|
*
|
|
16
16
|
*/
|
|
17
|
-
const atcbVersion = '2.6.
|
|
17
|
+
const atcbVersion = '2.6.11';
|
|
18
18
|
const atcbCssTemplate = {};
|
|
19
19
|
const atcbIsBrowser = () => {
|
|
20
20
|
if (typeof window === 'undefined') {
|
|
@@ -2211,11 +2211,11 @@ function atcb_subscribe_google(data, fileUrl) {
|
|
|
2211
2211
|
}
|
|
2212
2212
|
return encodeURIComponent(fileUrl);
|
|
2213
2213
|
})();
|
|
2214
|
-
if (atcbIsAndroid()) {
|
|
2214
|
+
if (atcbIsAndroid() || data.fakeAndroid) {
|
|
2215
2215
|
atcb_open_cal_url(data, 'google', 'intent://' + baseUrlApp + newFileUrl + '#Intent;scheme=https;package=com.google.android.calendar;end', true);
|
|
2216
2216
|
return;
|
|
2217
2217
|
}
|
|
2218
|
-
if (atcbIsiOS() && atcbIsSafari() && fileUrlRegex.test(fileUrl)) {
|
|
2218
|
+
if (((atcbIsiOS() && atcbIsSafari()) || data.fakeIOS) && fileUrlRegex.test(fileUrl)) {
|
|
2219
2219
|
atcb_open_cal_url(data, 'google', 'googlecalendar://' + baseUrlApp + newFileUrl, true);
|
|
2220
2220
|
return;
|
|
2221
2221
|
}
|
|
@@ -7,14 +7,14 @@ const tzlibActions = require('timezones-ical-library');
|
|
|
7
7
|
* Add to Calendar Button
|
|
8
8
|
* ++++++++++++++++++++++
|
|
9
9
|
*
|
|
10
|
-
* Version: 2.6.
|
|
10
|
+
* Version: 2.6.11
|
|
11
11
|
* Creator: Jens Kuerschner (https://jekuer.com)
|
|
12
12
|
* Project: https://github.com/add2cal/add-to-calendar-button
|
|
13
13
|
* License: Elastic License 2.0 (ELv2) (https://github.com/add2cal/add-to-calendar-button/blob/main/LICENSE.txt)
|
|
14
14
|
* Note: DO NOT REMOVE THE COPYRIGHT NOTICE ABOVE!
|
|
15
15
|
*
|
|
16
16
|
*/
|
|
17
|
-
const atcbVersion = '2.6.
|
|
17
|
+
const atcbVersion = '2.6.11';
|
|
18
18
|
const atcbCssTemplate = {};
|
|
19
19
|
const atcbIsBrowser = () => {
|
|
20
20
|
if (typeof window === 'undefined') {
|
|
@@ -2917,11 +2917,11 @@ function atcb_subscribe_google(data, fileUrl) {
|
|
|
2917
2917
|
}
|
|
2918
2918
|
return encodeURIComponent(fileUrl);
|
|
2919
2919
|
})();
|
|
2920
|
-
if (atcbIsAndroid()) {
|
|
2920
|
+
if (atcbIsAndroid() || data.fakeAndroid) {
|
|
2921
2921
|
atcb_open_cal_url(data, 'google', 'intent://' + baseUrlApp + newFileUrl + '#Intent;scheme=https;package=com.google.android.calendar;end', true);
|
|
2922
2922
|
return;
|
|
2923
2923
|
}
|
|
2924
|
-
if (atcbIsiOS() && atcbIsSafari() && fileUrlRegex.test(fileUrl)) {
|
|
2924
|
+
if (((atcbIsiOS() && atcbIsSafari()) || data.fakeIOS) && fileUrlRegex.test(fileUrl)) {
|
|
2925
2925
|
atcb_open_cal_url(data, 'google', 'googlecalendar://' + baseUrlApp + newFileUrl, true);
|
|
2926
2926
|
return;
|
|
2927
2927
|
}
|
package/dist/module/index.js
CHANGED
|
@@ -6,14 +6,14 @@ import { tzlib_get_ical_block, tzlib_get_offset, tzlib_get_timezones } from 'tim
|
|
|
6
6
|
* Add to Calendar Button
|
|
7
7
|
* ++++++++++++++++++++++
|
|
8
8
|
*
|
|
9
|
-
* Version: 2.6.
|
|
9
|
+
* Version: 2.6.11
|
|
10
10
|
* Creator: Jens Kuerschner (https://jekuer.com)
|
|
11
11
|
* Project: https://github.com/add2cal/add-to-calendar-button
|
|
12
12
|
* License: Elastic License 2.0 (ELv2) (https://github.com/add2cal/add-to-calendar-button/blob/main/LICENSE.txt)
|
|
13
13
|
* Note: DO NOT REMOVE THE COPYRIGHT NOTICE ABOVE!
|
|
14
14
|
*
|
|
15
15
|
*/
|
|
16
|
-
const atcbVersion = '2.6.
|
|
16
|
+
const atcbVersion = '2.6.11';
|
|
17
17
|
const atcbCssTemplate = {
|
|
18
18
|
if (typeof window === 'undefined') {
|
|
19
19
|
return false;
|
|
@@ -2915,11 +2915,11 @@ function atcb_subscribe_google(data, fileUrl) {
|
|
|
2915
2915
|
}
|
|
2916
2916
|
return encodeURIComponent(fileUrl);
|
|
2917
2917
|
})();
|
|
2918
|
-
if (atcbIsAndroid()) {
|
|
2918
|
+
if (atcbIsAndroid() || data.fakeAndroid) {
|
|
2919
2919
|
atcb_open_cal_url(data, 'google', 'intent://' + baseUrlApp + newFileUrl + '#Intent;scheme=https;package=com.google.android.calendar;end', true);
|
|
2920
2920
|
return;
|
|
2921
2921
|
}
|
|
2922
|
-
if (atcbIsiOS() && atcbIsSafari() && fileUrlRegex.test(fileUrl)) {
|
|
2922
|
+
if (((atcbIsiOS() && atcbIsSafari()) || data.fakeIOS) && fileUrlRegex.test(fileUrl)) {
|
|
2923
2923
|
atcb_open_cal_url(data, 'google', 'googlecalendar://' + baseUrlApp + newFileUrl, true);
|
|
2924
2924
|
return;
|
|
2925
2925
|
}
|
|
@@ -6,14 +6,14 @@ import { tzlib_get_ical_block, tzlib_get_offset, tzlib_get_timezones } from 'tim
|
|
|
6
6
|
* Add to Calendar Button
|
|
7
7
|
* ++++++++++++++++++++++
|
|
8
8
|
*
|
|
9
|
-
* Version: 2.6.
|
|
9
|
+
* Version: 2.6.11
|
|
10
10
|
* Creator: Jens Kuerschner (https://jekuer.com)
|
|
11
11
|
* Project: https://github.com/add2cal/add-to-calendar-button
|
|
12
12
|
* License: Elastic License 2.0 (ELv2) (https://github.com/add2cal/add-to-calendar-button/blob/main/LICENSE.txt)
|
|
13
13
|
* Note: DO NOT REMOVE THE COPYRIGHT NOTICE ABOVE!
|
|
14
14
|
*
|
|
15
15
|
*/
|
|
16
|
-
const atcbVersion = '2.6.
|
|
16
|
+
const atcbVersion = '2.6.11';
|
|
17
17
|
const atcbCssTemplate = {
|
|
18
18
|
if (typeof window === 'undefined') {
|
|
19
19
|
return false;
|
|
@@ -2209,11 +2209,11 @@ function atcb_subscribe_google(data, fileUrl) {
|
|
|
2209
2209
|
}
|
|
2210
2210
|
return encodeURIComponent(fileUrl);
|
|
2211
2211
|
})();
|
|
2212
|
-
if (atcbIsAndroid()) {
|
|
2212
|
+
if (atcbIsAndroid() || data.fakeAndroid) {
|
|
2213
2213
|
atcb_open_cal_url(data, 'google', 'intent://' + baseUrlApp + newFileUrl + '#Intent;scheme=https;package=com.google.android.calendar;end', true);
|
|
2214
2214
|
return;
|
|
2215
2215
|
}
|
|
2216
|
-
if (atcbIsiOS() && atcbIsSafari() && fileUrlRegex.test(fileUrl)) {
|
|
2216
|
+
if (((atcbIsiOS() && atcbIsSafari()) || data.fakeIOS) && fileUrlRegex.test(fileUrl)) {
|
|
2217
2217
|
atcb_open_cal_url(data, 'google', 'googlecalendar://' + baseUrlApp + newFileUrl, true);
|
|
2218
2218
|
return;
|
|
2219
2219
|
}
|
|
@@ -6,14 +6,14 @@ import { tzlib_get_ical_block, tzlib_get_offset, tzlib_get_timezones } from 'tim
|
|
|
6
6
|
* Add to Calendar Button
|
|
7
7
|
* ++++++++++++++++++++++
|
|
8
8
|
*
|
|
9
|
-
* Version: 2.6.
|
|
9
|
+
* Version: 2.6.11
|
|
10
10
|
* Creator: Jens Kuerschner (https://jekuer.com)
|
|
11
11
|
* Project: https://github.com/add2cal/add-to-calendar-button
|
|
12
12
|
* License: Elastic License 2.0 (ELv2) (https://github.com/add2cal/add-to-calendar-button/blob/main/LICENSE.txt)
|
|
13
13
|
* Note: DO NOT REMOVE THE COPYRIGHT NOTICE ABOVE!
|
|
14
14
|
*
|
|
15
15
|
*/
|
|
16
|
-
const atcbVersion = '2.6.
|
|
16
|
+
const atcbVersion = '2.6.11';
|
|
17
17
|
const atcbCssTemplate = {};
|
|
18
18
|
const atcbIsBrowser = () => {
|
|
19
19
|
if (typeof window === 'undefined') {
|
|
@@ -2210,11 +2210,11 @@ function atcb_subscribe_google(data, fileUrl) {
|
|
|
2210
2210
|
}
|
|
2211
2211
|
return encodeURIComponent(fileUrl);
|
|
2212
2212
|
})();
|
|
2213
|
-
if (atcbIsAndroid()) {
|
|
2213
|
+
if (atcbIsAndroid() || data.fakeAndroid) {
|
|
2214
2214
|
atcb_open_cal_url(data, 'google', 'intent://' + baseUrlApp + newFileUrl + '#Intent;scheme=https;package=com.google.android.calendar;end', true);
|
|
2215
2215
|
return;
|
|
2216
2216
|
}
|
|
2217
|
-
if (atcbIsiOS() && atcbIsSafari() && fileUrlRegex.test(fileUrl)) {
|
|
2217
|
+
if (((atcbIsiOS() && atcbIsSafari()) || data.fakeIOS) && fileUrlRegex.test(fileUrl)) {
|
|
2218
2218
|
atcb_open_cal_url(data, 'google', 'googlecalendar://' + baseUrlApp + newFileUrl, true);
|
|
2219
2219
|
return;
|
|
2220
2220
|
}
|
|
@@ -6,14 +6,14 @@ import { tzlib_get_ical_block, tzlib_get_offset, tzlib_get_timezones } from 'tim
|
|
|
6
6
|
* Add to Calendar Button
|
|
7
7
|
* ++++++++++++++++++++++
|
|
8
8
|
*
|
|
9
|
-
* Version: 2.6.
|
|
9
|
+
* Version: 2.6.11
|
|
10
10
|
* Creator: Jens Kuerschner (https://jekuer.com)
|
|
11
11
|
* Project: https://github.com/add2cal/add-to-calendar-button
|
|
12
12
|
* License: Elastic License 2.0 (ELv2) (https://github.com/add2cal/add-to-calendar-button/blob/main/LICENSE.txt)
|
|
13
13
|
* Note: DO NOT REMOVE THE COPYRIGHT NOTICE ABOVE!
|
|
14
14
|
*
|
|
15
15
|
*/
|
|
16
|
-
const atcbVersion = '2.6.
|
|
16
|
+
const atcbVersion = '2.6.11';
|
|
17
17
|
const atcbCssTemplate = {};
|
|
18
18
|
const atcbIsBrowser = () => {
|
|
19
19
|
if (typeof window === 'undefined') {
|
|
@@ -2916,11 +2916,11 @@ function atcb_subscribe_google(data, fileUrl) {
|
|
|
2916
2916
|
}
|
|
2917
2917
|
return encodeURIComponent(fileUrl);
|
|
2918
2918
|
})();
|
|
2919
|
-
if (atcbIsAndroid()) {
|
|
2919
|
+
if (atcbIsAndroid() || data.fakeAndroid) {
|
|
2920
2920
|
atcb_open_cal_url(data, 'google', 'intent://' + baseUrlApp + newFileUrl + '#Intent;scheme=https;package=com.google.android.calendar;end', true);
|
|
2921
2921
|
return;
|
|
2922
2922
|
}
|
|
2923
|
-
if (atcbIsiOS() && atcbIsSafari() && fileUrlRegex.test(fileUrl)) {
|
|
2923
|
+
if (((atcbIsiOS() && atcbIsSafari()) || data.fakeIOS) && fileUrlRegex.test(fileUrl)) {
|
|
2924
2924
|
atcb_open_cal_url(data, 'google', 'googlecalendar://' + baseUrlApp + newFileUrl, true);
|
|
2925
2925
|
return;
|
|
2926
2926
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "add-to-calendar-button",
|
|
3
|
-
"version": "2.6.
|
|
3
|
+
"version": "2.6.11",
|
|
4
4
|
"engines": {
|
|
5
5
|
"node": ">=18.17.0",
|
|
6
6
|
"npm": ">=9.6.7"
|
|
@@ -100,8 +100,8 @@
|
|
|
100
100
|
},
|
|
101
101
|
"devDependencies": {
|
|
102
102
|
"@open-wc/testing": "^4.0.0",
|
|
103
|
-
"@typescript-eslint/eslint-plugin": "^7.
|
|
104
|
-
"@typescript-eslint/parser": "^7.
|
|
103
|
+
"@typescript-eslint/eslint-plugin": "^7.6.0",
|
|
104
|
+
"@typescript-eslint/parser": "^7.6.0",
|
|
105
105
|
"@web/test-runner": "^0.18.1",
|
|
106
106
|
"eslint": "^8.57.0",
|
|
107
107
|
"eslint-config-prettier": "^9.1.0",
|