From 5eed7f02fd381a1b7d98e55e76532ef07cdb29d5 Mon Sep 17 00:00:00 2001 From: Ramiro Saenz Date: Thu, 8 Oct 2020 18:04:51 -0300 Subject: [PATCH] Changed URLs for updates and services --- Backers.md | 6 ------ app/Application.js | 4 ++-- app/store/ServicesList.js | 2 +- 3 files changed, 3 insertions(+), 9 deletions(-) delete mode 100644 Backers.md diff --git a/Backers.md b/Backers.md deleted file mode 100644 index 485bd372..00000000 --- a/Backers.md +++ /dev/null @@ -1,6 +0,0 @@ -# Monthly Donators - -[Martin Grünbaum](https://github.com/alathon) - -Ivan Toshkov -[Simon Joda Stößer](https://github.com/SimJoSt) diff --git a/app/Application.js b/app/Application.js index bb50f913..dbe77934 100644 --- a/app/Application.js +++ b/app/Application.js @@ -277,12 +277,12 @@ Ext.define('Rambox.Application', { ,checkUpdate: function(silence) { console.info('Checking for updates...'); Ext.Ajax.request({ - url: 'https://rambox.pro/api/latestversion.json' + url: 'https://api.github.com/repos/ramboxapp/community-edition/releases/latest' ,method: 'GET' ,success: function(response) { var json = Ext.decode(response.responseText); var appVersion = new Ext.Version(require('electron').remote.app.getVersion()); - if ( appVersion.isLessThan(json.version) ) { + if ( appVersion.isLessThan(json.name) && !json.draft && !json.prerelease ) { console.info('New version is available', json.version); Ext.cq1('app-main').addDocked({ xtype: 'toolbar' diff --git a/app/store/ServicesList.js b/app/store/ServicesList.js index 59d42328..a2172525 100644 --- a/app/store/ServicesList.js +++ b/app/store/ServicesList.js @@ -10,7 +10,7 @@ Ext.define('Rambox.store.ServicesList', { ,proxy: { type: 'ajax', - url: 'https://raw.githubusercontent.com/saenzramiro/rambox/gh-pages/api/services.json', + url: 'https://raw.githubusercontent.com/ramboxapp/community-edition/gh-pages/api/services.json', reader: { type: 'json', rootProperty: 'responseText'