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

✌️

parent 90959a83
No related branches found
No related tags found
No related merge requests found
......@@ -8,7 +8,7 @@ const api = require('./common/scripts/api');
const signout = require('./common/scripts/signout');
const generateDefaultUserdata = require('./common/scripts/generate-default-userdata');
const mixins = require('./common/mixins');
const checkForUpdate = require('./common/scripts/check-for-update.ls');
const checkForUpdate = require('./common/scripts/check-for-update');
require('./common/tags');
/**
......
......@@ -43,6 +43,6 @@ module.exports = me => {
});
riot.mixin('ui-progress', {
Progress: require('./scripts/loading.ls')
Progress: require('./scripts/loading')
});
};
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);
}
}
});
});
};
module.exports = ->
fetch \/api:meta
.then (res) ~>
meta <~ res.json!.then
if meta.commit.hash != VERSION
if window.confirm '新しいMisskeyのバージョンがあります。更新しますか?\r\n(このメッセージが繰り返し表示される場合は、サーバーにデータがまだ届いていない可能性があるので、少し時間を置いてから再度お試しください)'
location.reload true
.catch ~>
# ignore
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