From 3f8ebac466ece8e9598432f3f574ec44e420c03b Mon Sep 17 00:00:00 2001 From: syuilo Date: Thu, 23 Nov 2017 05:43:00 +0900 Subject: なんかもうめっちゃ変えた MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Closes #940 --- src/web/app/init.ts | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) (limited to 'src/web/app/init.ts') diff --git a/src/web/app/init.ts b/src/web/app/init.ts index 19605dc8a5..76bad0ae61 100644 --- a/src/web/app/init.ts +++ b/src/web/app/init.ts @@ -2,13 +2,12 @@ * App initializer */ -declare var VERSION: string; -declare var LANG: string; +declare const _VERSION_: string; +declare const _LANG_: string; +declare const _HOST_: string; -import * as riot from 'riot'; import checkForUpdate from './common/scripts/check-for-update'; import mixin from './common/mixins'; -import CONFIG from './common/scripts/config'; import MiOS from './common/mios'; require('./common/tags'); @@ -16,15 +15,15 @@ require('./common/tags'); * APP ENTRY POINT! */ -console.info(`Misskey v${VERSION} (葵 aoi)`); +console.info(`Misskey v${_VERSION_} (葵 aoi)`); -if (CONFIG.host != 'localhost') { - document.domain = CONFIG.host; +if (_HOST_ != 'localhost') { + document.domain = _HOST_; } { // Set lang attr const html = document.documentElement; - html.setAttribute('lang', LANG); + html.setAttribute('lang', _LANG_); } { // Set description meta tag @@ -35,9 +34,6 @@ if (CONFIG.host != 'localhost') { head.appendChild(meta); } -// Set global configuration -(riot as any).mixin({ CONFIG }); - // iOSでプライベートモードだとlocalStorageが使えないので既存のメソッドを上書きする try { localStorage.setItem('kyoppie', 'yuppie'); @@ -94,7 +90,7 @@ function panic(e) { + '
' + `

エラーコード: ${e.toString()}

` + `

ブラウザ バージョン: ${navigator.userAgent}

` - + `

クライアント バージョン: ${VERSION}

` + + `

クライアント バージョン: ${_VERSION_}

` + '
' + '

問題が解決しない場合は、上記の情報をお書き添えの上 syuilotan@yahoo.co.jp までご連絡ください。

' + '

Thank you for using Misskey.

' -- cgit v1.2.3-freya