diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2017-11-23 05:43:00 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2017-11-23 05:43:00 +0900 |
| commit | 3f8ebac466ece8e9598432f3f574ec44e420c03b (patch) | |
| tree | 05114fce9728d6ce1deecc1f2eb8a903a22b0100 /src/web/app/init.ts | |
| parent | :v: (diff) | |
| download | misskey-3f8ebac466ece8e9598432f3f574ec44e420c03b.tar.gz misskey-3f8ebac466ece8e9598432f3f574ec44e420c03b.tar.bz2 misskey-3f8ebac466ece8e9598432f3f574ec44e420c03b.zip | |
なんかもうめっちゃ変えた
Closes #940
Diffstat (limited to 'src/web/app/init.ts')
| -rw-r--r-- | src/web/app/init.ts | 20 |
1 files changed, 8 insertions, 12 deletions
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) { + '<hr>' + `<p>エラーコード: ${e.toString()}</p>` + `<p>ブラウザ バージョン: ${navigator.userAgent}</p>` - + `<p>クライアント バージョン: ${VERSION}</p>` + + `<p>クライアント バージョン: ${_VERSION_}</p>` + '<hr>' + '<p>問題が解決しない場合は、上記の情報をお書き添えの上 syuilotan@yahoo.co.jp までご連絡ください。</p>' + '<p>Thank you for using Misskey.</p>' |