Skip to content

Commit

Permalink
fix that annoying time bug on day plan
Browse files Browse the repository at this point in the history
  • Loading branch information
SallyMcGrath committed Dec 5, 2024
1 parent 5b6d4c0 commit 5a2ce91
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions common-theme/assets/scripts/time-stamper.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,12 @@ class TimeStamper extends HTMLElement {
constructor() {
super();
this.attachShadow({ mode: "open" });
this.shadowRoot.innerHTML = `
<style>
/* You can include any component-specific styles here */
</style>
<slot></slot>
`;

this.timelineEntries = this.querySelectorAll(".c-block");
this.startTime = this.getAttribute('start-time');
this.shadowRoot.innerHTML = `<slot></slot>`;

this.timelineEntries = this.querySelectorAll(
".c-block:not(.is-nested .c-block)"
);
this.startTime = this.getAttribute("start-time");
}

connectedCallback() {
Expand Down

0 comments on commit 5a2ce91

Please sign in to comment.