Browse Source

Move UserAgents to Model

pull/291/merge
Ramiro Saenz 9 years ago
parent
commit
8a965cf24a
  1. 4
      app/model/ServiceList.js
  2. 1
      app/store/ServicesList.js
  3. 2
      app/ux/WebView.js

4
app/model/ServiceList.js

@ -27,6 +27,10 @@ Ext.define('Rambox.model.ServiceList', {
name: 'titleBlink'
,type: 'boolean'
,defaultValue: false
},{
name: 'userAgent'
,type: 'string'
,defaultValue: ''
},{
name: 'note'
,type: 'string'

1
app/store/ServicesList.js

@ -63,6 +63,7 @@ Ext.define('Rambox.store.ServicesList', {
,description: 'Stay in touch with family and friends for free. Get international calling, free online calls and Skype for Business on desktop and mobile.'
,url: 'https://web.skype.com/'
,type: 'messaging'
,userAgent: 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2486.0 Safari/537.36 Edge/13.10586'
,note: 'Text and Audio calls are supported only. <a href="https://github.com/saenzramiro/rambox/wiki/Skype" target="_blank">Read more...</a>'
},
{

2
app/ux/WebView.js

@ -47,7 +47,7 @@ Ext.define('Rambox.ux.WebView',{
,autosize: 'on'
,allowpopups: 'on'
,blinkfeatures: 'ApplicationCache,GlobalCacheStorage'
,useragent: me.type === 'skype' ? 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2486.0 Safari/537.36 Edge/13.10586' : '' // Used to enable video and audio calls in Skype
,useragent: Ext.getStore('ServicesList').getById(me.type).get('userAgent')
}
}]
,tabConfig: {

Loading…
Cancel
Save