parent
2496cece91
commit
45e8331e26
150 changed files with 610 additions and 609 deletions
14
src/web/app/common/scripts/check-for-update.js
Normal file
14
src/web/app/common/scripts/check-for-update.js
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
import CONFIG from './config';
|
||||
|
||||
export default function() {
|
||||
fetch(CONFIG.apiUrl + '/meta', {
|
||||
method: 'POST'
|
||||
}).then(res => {
|
||||
res.json().then(meta => {
|
||||
if (meta.version != VERSION) {
|
||||
localStorage.setItem('should-refresh', 'true');
|
||||
alert('Misskeyの新しいバージョンがあります。ページを再度読み込みすると更新が適用されます。');
|
||||
}
|
||||
});
|
||||
});
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue