Update head.js

This commit is contained in:
netop:// ウェッブ 2019-02-15 11:40:10 -06:00 committed by GitHub
parent 3a76f9990c
commit ca2e2b8b6c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -6,14 +6,15 @@
import html from "choo/html";
// U T I L S
// U T I L
import config from "@root/config";
// E X P O R T
export default (state, emit) => {
const newMetadata = state.lbry;
const description = newMetadata && newMetadata.description ? newMetadata.description : config.meta.description;
const title = newMetadata && newMetadata.title ? newMetadata.title + " - lbry.tech" : "lbry.tech - " + config.meta.tagline;
@ -21,7 +22,6 @@ export default (state, emit) => {
if (state.title !== title) emit(state.events.DOMTITLECHANGE, title);
state.page = state.page || { };
return html`
<meta charset="utf-8"/>
<title>${title}</title>