Browse Source

fix disable update checking

pull/1239/head
Viktor Yudov 2 years ago
parent
commit
e65dd0d4d3
  1. 4
      src/lib/Server.js
  2. 2
      src/www/js/api.js
  3. 2
      src/www/js/app.js

4
src/lib/Server.js

@ -39,9 +39,7 @@ module.exports = class Server {
})) }))
.get('/api/check-update', (Util.promisify(async () => { .get('/api/check-update', (Util.promisify(async () => {
return { return CHECK_UPDATE;
checkUpdate: CHECK_UPDATE,
};
}))) })))
.get('/api/release', (Util.promisify(async () => { .get('/api/release', (Util.promisify(async () => {

2
src/www/js/api.js

@ -29,7 +29,7 @@ class API {
return json; return json;
} }
async checkUpdate() { async getCheckUpdate() {
return this.call({ return this.call({
method: 'get', method: 'get',
path: '/check-update', path: '/check-update',

2
src/www/js/app.js

@ -301,7 +301,7 @@ new Vue({
i18n.locale = lang; i18n.locale = lang;
} }
const checkUpdate = await this.api.checkUpdate(); const checkUpdate = await this.api.getCheckUpdate();
if (!checkUpdate) return; if (!checkUpdate) return;
const currentRelease = await this.api.getRelease(); const currentRelease = await this.api.getRelease();

Loading…
Cancel
Save