Clean up

This commit is contained in:
syuilo
2017-02-27 02:51:38 +09:00
parent f565122c4c
commit 134be39d38
5 changed files with 75 additions and 127 deletions

View File

@@ -1,11 +0,0 @@
module.exports = () => {
fetch('/api:meta').then(res => {
res.json().then(meta => {
if (meta.commit.hash !== VERSION) {
if (window.confirm('新しいMisskeyのバージョンがあります。更新しますか\r\n(このメッセージが繰り返し表示される場合は、サーバーにデータがまだ届いていない可能性があるので、少し時間を置いてから再度お試しください)')) {
location.reload(true);
}
}
});
});
};