Skip to content
This repository has been archived by the owner on Sep 8, 2023. It is now read-only.

Commit

Permalink
Merge pull request #33 from justinyoo/master
Browse files Browse the repository at this point in the history
Fix Gist.js to handle HTML undefined
  • Loading branch information
noxify committed Dec 31, 2019
2 parents 0a549be + d84bb8c commit 65ccc49
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/providers/Gist.js
Expand Up @@ -116,10 +116,10 @@ class Gist extends Provider {
return template({
id: this.getEmbedId(embedLink),
link: embedLink,
embedData: html.trim(),
embedData: html == undefined ? '' : html.trim(),
options: this.options
});
}
}

module.exports = Gist;
module.exports = Gist;

0 comments on commit 65ccc49

Please sign in to comment.