From 58af4365e95dc1a86bbabdf46c9e4bd833f943fa Mon Sep 17 00:00:00 2001 From: syuilo Date: Thu, 26 Oct 2017 09:02:40 +0900 Subject: [Client] Set description meta tag --- src/web/app/init.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/web/app/init.js b/src/web/app/init.js index 2ddb66b3e7..cb661c2595 100644 --- a/src/web/app/init.js +++ b/src/web/app/init.js @@ -2,7 +2,7 @@ * App initializer */ -"use strict"; +'use strict'; import * as riot from 'riot'; import api from './common/scripts/api'; @@ -21,6 +21,14 @@ require('./common/tags'); console.info(`Misskey v${VERSION} (葵 aoi)`); +{ // Set description meta tag + const head = document.getElementsByTagName('head')[0]; + const meta = document.createElement('meta'); + meta.setAttribute('name', 'description'); + meta.setAttribute('content', '%i18n:common.misskey%'); + head.appendChild(meta); +} + document.domain = CONFIG.host; // Set global configuration -- cgit v1.2.3-freya