This commit is contained in:
syuilo
2017-02-18 16:57:16 +09:00
parent 90959a8347
commit f7444c6c0b
4 changed files with 13 additions and 11 deletions

View File

@ -0,0 +1,11 @@
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);
}
}
});
});
};