Browse Source

Changed URLs for updates and services

pull/2897/head
Ramiro Saenz 5 years ago
parent
commit
5eed7f02fd
  1. 6
      Backers.md
  2. 4
      app/Application.js
  3. 2
      app/store/ServicesList.js

6
Backers.md

@ -1,6 +0,0 @@
# Monthly Donators
[Martin Grünbaum](https://github.com/alathon)
Ivan Toshkov
[Simon Joda Stößer](https://github.com/SimJoSt)

4
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'

2
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'

Loading…
Cancel
Save