The problem is a catch
statement without a matching try
.
Starting on line 59
we see:
TimelineWidget.prototype.loadTimelineJS = function() {
var self = this;
// Load CSS if not already loaded
if(!document.getElementById("timelinejs-css")) {
var link = document.createElement("link");
link.id = "timelinejs-css";
link.rel = "stylesheet";
link.href = "https://cdn.knightlab.com/libs/timeline3/latest/css/timeline.css";
document.head.appendChild(link);
}
// Load JavaScript if not already loaded
if(typeof TL === "undefined") {
var script = document.createElement("script");
script.src = "https://cdn.knightlab.com/libs/timeline3/latest/js/timeline.js";
script.onload = function() {
self.createTimeline();
};
document.head.appendChild(script);
} else {
// Timeline already loaded, create directly
self.createTimeline();
}
} catch(e) {
console.error("Timeline plugin error:", e);
}
};
That catch
at the end does not have a matching try
. I don’t know the logic, and don’t have time to investigate right now, but perhaps that will get you moving.