add-to-calendar-button
Advanced tools
Comparing version 1.6.1 to 1.6.2
@@ -6,3 +6,3 @@ /** | ||
*/ | ||
const atcbVersion = '1.6.1'; | ||
const atcbVersion = '1.6.2'; | ||
/* Creator: Jens Kuerschner (https://jenskuerschner.de) | ||
@@ -39,3 +39,3 @@ * Project: https://github.com/jekuer/add-to-calendar-button | ||
// get schema.org event markup and flatten the event block | ||
atcbConfig = JSON.parse(schema.innerHTML); | ||
atcbConfig = JSON.parse(schema.innerHTML.replace(/(\r\n|\n|\r)/gm, "")); // we also remove any real code line breaks from the JSON before parsing it. Use <br> or \n explicitely in the description to create a line break | ||
atcbConfig = atcb_clean_schema_json(atcbConfig); | ||
@@ -46,3 +46,3 @@ // set flag to not delete HTML content later | ||
// get JSON from HTML block | ||
atcbConfig = JSON.parse(atcButtons[i].innerHTML); | ||
atcbConfig = JSON.parse(atcButtons[i].innerHTML.replace(/(\r\n|\n|\r)/gm, "")); // we also remove any real code line breaks from the JSON before parsing it. Use <br> or \n explicitely in the description to create a line break | ||
// set flag to delete HTML content later | ||
@@ -49,0 +49,0 @@ atcbConfig['deleteJSON'] = true; |
{ | ||
"name": "add-to-calendar-button", | ||
"version": "1.6.1", | ||
"version": "1.6.2", | ||
"description": "A convenient JavaScript snippet, which lets you create beautiful buttons, where people can add events to their calendars.", | ||
@@ -5,0 +5,0 @@ "main": "npm_dist/atcb_npm.js", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
59964