Skip to content
Snippets Groups Projects
Commit aeca115a authored by MeiMei's avatar MeiMei Committed by syuilo
Browse files

developにキャッシュFlushリンクを追加 (#4313)

parent 6f97142b
No related branches found
No related tags found
No related merge requests found
<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">
......
<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">
......
......@@ -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');
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment