summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2017-10-26 09:02:40 +0900
committersyuilo <syuilotan@yahoo.co.jp>2017-10-26 09:02:40 +0900
commit58af4365e95dc1a86bbabdf46c9e4bd833f943fa (patch)
treea4fc2d25e86fc58c7345a91032f3fb960ecba6d7 /src
parentv2747 (diff)
downloadsharkey-58af4365e95dc1a86bbabdf46c9e4bd833f943fa.tar.gz
sharkey-58af4365e95dc1a86bbabdf46c9e4bd833f943fa.tar.bz2
sharkey-58af4365e95dc1a86bbabdf46c9e4bd833f943fa.zip
[Client] Set description meta tag
Diffstat (limited to 'src')
-rw-r--r--src/web/app/init.js10
1 files changed, 9 insertions, 1 deletions
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