@knight-lab/timelinejs
Advanced tools
Comparing version 3.7.2 to 3.7.3
{ | ||
"name": "@knight-lab/timelinejs", | ||
"version": "3.7.2", | ||
"version": "3.7.3", | ||
"license": "MPL-2.0", | ||
@@ -5,0 +5,0 @@ "description": "TimelineJS v3: A Storytelling Timeline built in JavaScript, made by Northwestern University Knight Lab.", |
@@ -127,4 +127,4 @@ import { sortByDate, SCALE_DATE_CLASSES } from "../date/DateUtil" | ||
var era_identifier; | ||
if (this.eras[i].text && this.eras[i].text.headline) { | ||
era_identifier = this.eras[i].text.headline | ||
if (this.eras[i].headline) { | ||
era_identifier = this.eras[i].headline | ||
} else { | ||
@@ -131,0 +131,0 @@ era_identifier = "era " + (i + 1); |
@@ -7,3 +7,3 @@ import { Media } from "../Media"; | ||
super(data, options, language); | ||
this.blockquote = DOMPurify.sanitize(txt) | ||
this.blockquote = DOMPurify.sanitize(this.data.url) | ||
} | ||
@@ -10,0 +10,0 @@ _loadMedia() { |
@@ -7,3 +7,3 @@ import { Media } from "../Media"; | ||
super(data, options, language); | ||
this.iframe = DOMPurify.sanitize(txt, { | ||
this.iframe = DOMPurify.sanitize(this.data.url, { | ||
ADD_TAGS: ['iframe'], | ||
@@ -10,0 +10,0 @@ ADD_ATTR: ['frameborder'], |
@@ -684,3 +684,3 @@ import { classMixin, mergeData, findNextGreater, findNextLesser, isEven, findArrayNumberByUniqueID, trace } from "../core/Util" | ||
if (this.config.eras) { | ||
if (this.config.eras && this.config.eras.length > 0) { | ||
this.has_eras = true; | ||
@@ -687,0 +687,0 @@ this._createEras(this.config.eras); |
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
5295714