Skip to content

Commit

Permalink
Merge pull request #683 from HSF/main-investigate-state-loading
Browse files Browse the repository at this point in the history
Fix for "TypeScript: Illegal constructor"
  • Loading branch information
EdwardMoyse authored Sep 16, 2024
2 parents 8fc9ada + af31c59 commit 0d61ee1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 2 additions & 1 deletion packages/phoenix-event-display/src/helpers/file.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ export const loadFile = (
onFileRead?.(e.target.result.toString());
}
inputFile.remove();
inputFile = new HTMLInputElement();
inputFile = document.createElement('input');
// For explanation, see https://stackoverflow.com/a/26221525
};
reader.readAsText(configFile);
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ export class HomeComponent implements AfterViewInit {
year: number;

constructor(private eventDisplay: EventDisplayService) {
console.log('Home component created');
this.year = new Date().getFullYear();
this.eventDisplay.getThreeManager().stopAnimationLoop();
}
Expand Down

0 comments on commit 0d61ee1

Please sign in to comment.