Skip to content

Commit

Permalink
Version 1.1.4
Browse files Browse the repository at this point in the history
  • Loading branch information
tombh committed Jun 26, 2018
1 parent 16f1917 commit af1f47b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion webext/manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"manifest_version": 2,
"name": "Browsh",
"version": "1.1.3",
"version": "1.1.4",

"description": "Renders the browser as realtime, interactive, TTY-compatible text",

Expand Down
6 changes: 5 additions & 1 deletion webext/src/dom/serialise_mixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,11 @@ export default (MixinBase) => class extends MixinBase {

_getFavicon() {
let el = document.querySelector("link[rel*='icon']");
return `<link rel="shortcut icon" type = "image/x-icon" href="${el.href}">`
if (el) {
return `<link rel="shortcut icon" type = "image/x-icon" href="${el.href}">`;
} else {
return '';
}
}


Expand Down

0 comments on commit af1f47b

Please sign in to comment.