mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-29 21:37:34 -07:00
developにキャッシュFlushリンクを追加 (#4313)
This commit is contained in:
parent
10154ac782
commit
e9835dd729
3 changed files with 3 additions and 3 deletions
|
@ -1,6 +1,6 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="header" :style="style">
|
<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="main" ref="main">
|
||||||
<div class="backdrop"></div>
|
<div class="backdrop"></div>
|
||||||
<div class="main">
|
<div class="main">
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="header" ref="root">
|
<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="main" ref="main">
|
||||||
<div class="backdrop"></div>
|
<div class="backdrop"></div>
|
||||||
<div class="content" ref="mainContainer">
|
<div class="content" ref="mainContainer">
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<title>Misskeyのリカバリ</title>
|
<title>Misskeyのリカバリ</title>
|
||||||
<script>
|
<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) {
|
if (yn) {
|
||||||
localStorage.setItem('shouldFlush', 'true');
|
localStorage.setItem('shouldFlush', 'true');
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue