summaryrefslogtreecommitdiff
path: root/src/web
diff options
context:
space:
mode:
Diffstat (limited to 'src/web')
-rw-r--r--src/web/app/boot.js4
-rw-r--r--src/web/app/common/scripts/check-for-update.js11
2 files changed, 0 insertions, 15 deletions
diff --git a/src/web/app/boot.js b/src/web/app/boot.js
index 0b963c40c1..f546cd8176 100644
--- a/src/web/app/boot.js
+++ b/src/web/app/boot.js
@@ -8,7 +8,6 @@ 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');
require('./common/tags');
/**
@@ -50,9 +49,6 @@ try {
Storage.prototype.setItem = () => { }; // noop
}
-// Check for Update
-checkForUpdate();
-
// ユーザーをフェッチしてコールバックする
module.exports = callback => {
// Get cached account data
diff --git a/src/web/app/common/scripts/check-for-update.js b/src/web/app/common/scripts/check-for-update.js
deleted file mode 100644
index cd7279e3b8..0000000000
--- a/src/web/app/common/scripts/check-for-update.js
+++ /dev/null
@@ -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);
- }
- }
- });
- });
-};