Skip to content

Commit

Permalink
Fixed problem in Thunderbird resulting from Yahoo-specific change las…
Browse files Browse the repository at this point in the history
…t night
  • Loading branch information
adam-p committed Feb 5, 2013
1 parent 5db0583 commit dfcecf6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/common/markdown-render.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@
// Yahoo seems to often/always/sometimes (only in Chrome?) use <p> instead
// of <div>. We'll replace the former with the latter so that our other rules work.
// TODO: Figure out if it's more than Yahoo that's a problem.
if (url.match(/\.yahoo\./i)) {
if (url && url.match(/\.yahoo\./i)) {
preprocessInfo.html =
preprocessInfo.html
.replace(/<p\b[^>]*>/ig, '<div>')
Expand Down
2 changes: 1 addition & 1 deletion src/firefox/chrome/content/ff-overlay.js
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ var markdown_here = {
hljs.hljs,
html,
targetDocument,
targetDocument.location.href),
targetDocument.location ? targetDocument.location.href : null),
prefs['main-css'] + prefs['syntax-css']);
});
},
Expand Down

0 comments on commit dfcecf6

Please sign in to comment.