kopia lustrzana https://github.com/browsh-org/browsh
rodzic
16f1917ed8
commit
af1f47bc65
|
@ -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",
|
||||
|
||||
|
|
|
@ -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 '';
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue