Skip to content
Snippets Groups Projects
Commit 9717451e authored by syuilo's avatar syuilo
Browse files

Update recovery scripts

parent 21119e97
No related merge requests found
const yn = window.confirm(
'サーバー上に存在しないスクリプトがリクエストされました。お使いのMisskeyのバージョンが古いことが原因の可能性があります。Misskeyを更新しますか?');
'サーバー上に存在しないスクリプトがリクエストされました。お使いのMisskeyのバージョンが古いことが原因の可能性があります。Misskeyを更新しますか?\n\nA script that does not exist on the server was requested. It may be caused by an old version of Misskey you’re using. Do you want to delete the cache?');
const langYn = window.confirm('また、言語を日本語に設定すると解決する場合があります。日本語に設定しますか?\n\nAlso, setting the language to Japanese may solve the problem. Would you like to set it to Japanese?');
if (langYn) {
localStorage.setItem('lang', 'ja');
}
if (yn) {
// Clear cache (serive worker)
......@@ -16,6 +22,4 @@ if (yn) {
localStorage.removeItem('v');
location.reload(true);
} else {
alert('問題が解決しない場合はサーバー管理者までお問い合せください。');
}
......@@ -5,15 +5,19 @@
<meta charset="utf-8">
<title>Misskeyのリカバリ</title>
<script>
const v = window.prompt('Enter version');
const v = window.prompt('Enter version:');
if (v) {
localStorage.setItem('v', v);
setTimeout(() => {
location.reload(true);
}, 500);
} else {
location.href = '/';
}
const lang = window.prompt('Enter language (optional):');
if (lang && lang.length > 0) {
localStorage.setItem('lang', lang);
}
setTimeout(() => {
location.href = '/';
}, 500);
</script>
</head>
</html>
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