diff --git a/app/model/ServiceList.js b/app/model/ServiceList.js index a54dd311..c0b8b15b 100644 --- a/app/model/ServiceList.js +++ b/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' diff --git a/app/store/ServicesList.js b/app/store/ServicesList.js index a8d9424a..9dd5fa20 100644 --- a/app/store/ServicesList.js +++ b/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. Read more...' }, { diff --git a/app/ux/WebView.js b/app/ux/WebView.js index 38044e87..0f7314bf 100644 --- a/app/ux/WebView.js +++ b/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: {