Skip to content

Commit

Permalink
fix(src content-script): make note optional
Browse files Browse the repository at this point in the history
  • Loading branch information
cmnord committed Mar 17, 2023
1 parent 82f363d commit 381cb43
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/content-script.ts
Expand Up @@ -80,10 +80,7 @@ export class GameParser {
this.title = title;

const note = document.querySelector("#game_comments")?.textContent;
if (!note) {
throw new Error("could not find id game_comments on page");
}
this.note = note;
this.note = note ?? "";

const jDiv = document.getElementById("jeopardy_round");
if (!jDiv) {
Expand Down

0 comments on commit 381cb43

Please sign in to comment.