summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMeiMei <30769358+mei23@users.noreply.github.com>2019-02-18 20:55:52 +0900
committersyuilo <Syuilotan@yahoo.co.jp>2019-02-18 20:55:52 +0900
commitaeca115a3757f585de0a4a8d2aaea264c51c1504 (patch)
tree3cade9120ccbb9278f63c554038a6c1b96aae894 /src
parent10.87.3 (diff)
downloadsharkey-aeca115a3757f585de0a4a8d2aaea264c51c1504.tar.gz
sharkey-aeca115a3757f585de0a4a8d2aaea264c51c1504.tar.bz2
sharkey-aeca115a3757f585de0a4a8d2aaea264c51c1504.zip
developにキャッシュFlushリンクを追加 (#4313)
Diffstat (limited to 'src')
-rw-r--r--src/client/app/desktop/views/components/ui.header.vue2
-rw-r--r--src/client/app/mobile/views/components/ui.header.vue2
-rw-r--r--src/client/assets/flush.html2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/client/app/desktop/views/components/ui.header.vue b/src/client/app/desktop/views/components/ui.header.vue
index 0883c9b97d..1845187ede 100644
--- a/src/client/app/desktop/views/components/ui.header.vue
+++ b/src/client/app/desktop/views/components/ui.header.vue
@@ -1,6 +1,6 @@
<template>
<div class="header" :style="style">
- <p class="warn" v-if="env != 'production'">{{ $t('@.do-not-use-in-production') }}</p>
+ <p class="warn" v-if="env != 'production'">{{ $t('@.do-not-use-in-production') }} <a href="/assets/flush.html?force">Flush</a></p>
<div class="main" ref="main">
<div class="backdrop"></div>
<div class="main">
diff --git a/src/client/app/mobile/views/components/ui.header.vue b/src/client/app/mobile/views/components/ui.header.vue
index 33420581f6..d9994f236a 100644
--- a/src/client/app/mobile/views/components/ui.header.vue
+++ b/src/client/app/mobile/views/components/ui.header.vue
@@ -1,6 +1,6 @@
<template>
<div class="header" ref="root">
- <p class="warn" v-if="env != 'production'">{{ $t('@.do-not-use-in-production') }}</p>
+ <p class="warn" v-if="env != 'production'">{{ $t('@.do-not-use-in-production') }} <a href="/assets/flush.html?force">Flush</a></p>
<div class="main" ref="main">
<div class="backdrop"></div>
<div class="content" ref="mainContainer">
diff --git a/src/client/assets/flush.html b/src/client/assets/flush.html
index d43600157a..27725268f9 100644
--- a/src/client/assets/flush.html
+++ b/src/client/assets/flush.html
@@ -5,7 +5,7 @@
<meta charset="utf-8">
<title>Misskeyのリカバリ</title>
<script>
- const yn = window.confirm('キャッシュをクリアしますか?\n\nDo you want to clear caches?');
+ const yn = location.search === '?force' || window.confirm('キャッシュをクリアしますか?\n\nDo you want to clear caches?');
if (yn) {
localStorage.setItem('shouldFlush', 'true');
}