diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2018-03-15 13:11:31 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2018-03-15 13:11:31 +0900 |
| commit | cc49e1af8e0d98f194d39de803196bce29214444 (patch) | |
| tree | 07f3062d60b2b3d989c4b14e0417dce2fc47a170 /src/web | |
| parent | #1239 (diff) | |
| download | misskey-cc49e1af8e0d98f194d39de803196bce29214444.tar.gz misskey-cc49e1af8e0d98f194d39de803196bce29214444.tar.bz2 misskey-cc49e1af8e0d98f194d39de803196bce29214444.zip | |
:v:
Diffstat (limited to 'src/web')
| -rw-r--r-- | src/web/app/boot.js | 5 | ||||
| -rw-r--r-- | src/web/app/desktop/views/components/settings.vue | 11 |
2 files changed, 12 insertions, 4 deletions
diff --git a/src/web/app/boot.js b/src/web/app/boot.js index 41685aadca..4b7d679429 100644 --- a/src/web/app/boot.js +++ b/src/web/app/boot.js @@ -65,8 +65,11 @@ // Script version const ver = localStorage.getItem('v') || VERSION; + // Whether in debug mode + const isDebug = localStorage.getItem('debug') == 'true'; + // Whether use raw version script - const raw = localStorage.getItem('useRawScript') == 'true'; + const raw = localStorage.getItem('useRawScript') == 'true' && isDebug; // Load an app script // Note: 'async' make it possible to load the script asyncly. diff --git a/src/web/app/desktop/views/components/settings.vue b/src/web/app/desktop/views/components/settings.vue index 5627da1ccc..f0cd69f372 100644 --- a/src/web/app/desktop/views/components/settings.vue +++ b/src/web/app/desktop/views/components/settings.vue @@ -162,12 +162,17 @@ <mk-switch v-model="debug" text="デバッグモードを有効にする"> <span>この設定はブラウザに記憶されます。</span> </mk-switch> + <template v-if="debug"> + <mk-switch v-model="useRawScript" text="生のスクリプトを読み込む"> + <span>圧縮されていない「生の」スクリプトを使用します。サイズが大きいため、読み込みに時間がかかる場合があります。この設定はブラウザに記憶されます。</span> + </mk-switch> + <div class="none ui info"> + <p>%fa:info-circle%Misskeyはソースマップも提供しています。</p> + </div> + </template> <mk-switch v-model="enableExperimental" text="実験的機能を有効にする"> <span>実験的機能を有効にするとMisskeyの動作が不安定になる可能性があります。この設定はブラウザに記憶されます。</span> </mk-switch> - <mk-switch v-model="useRawScript" text="生のスクリプトを読み込む"> - <span>圧縮されていない「生の」スクリプトを使用します。サイズが大きいため、読み込みに時間がかかる場合があります。この設定はブラウザに記憶されます。</span> - </mk-switch> </section> <section class="other" v-show="page == 'other'"> |