Browse Source

Removed Rambox in User Agent in production

pull/2223/head
Ramiro Saenz 6 years ago
parent
commit
b1adbc4d25
  1. 4
      app/ux/WebView.js

4
app/ux/WebView.js

@ -190,7 +190,7 @@ Ext.define('Rambox.ux.WebView',{
} }
,getUserAgent: function() { ,getUserAgent: function() {
var ua = ipc.sendSync('getConfig').user_agent ? ipc.sendSync('getConfig').user_agent : Ext.getStore('ServicesList').getById(this.record.get('type')).get('userAgent') var ua = ipc.sendSync('getConfig').user_agent ? ipc.sendSync('getConfig').user_agent : Ext.getStore('ServicesList').getById(this.record.get('type')).get('userAgent')
return ua.length === 0 ? window.clientInformation.userAgent.replace(/Electron\/([0-9]\.?)+\s/,'') : ua; return ua.length === 0 ? window.clientInformation.userAgent.replace(/Rambox\/([0-9]\.?)+\s/,'').replace(/Electron\/([0-9]\.?)+\s/,'') : ua;
} }
,statusBarConstructor: function(floating) { ,statusBarConstructor: function(floating) {
@ -495,7 +495,7 @@ Ext.define('Rambox.ux.WebView',{
return this.keyCode || this.charCode // fake function, normally used by Ext.js, simply returning keyCode return this.keyCode || this.charCode // fake function, normally used by Ext.js, simply returning keyCode
} }
document.keyMapping.handleTargetEvent(emulatedKeyboardEvent) // we directly trigger handleTargetEvent. That's a private method normally. We can't fire the event directly with document.dispatch, unfortunately document.keyMapping.handleTargetEvent(emulatedKeyboardEvent) // we directly trigger handleTargetEvent. That's a private method normally. We can't fire the event directly with document.dispatch, unfortunately
} }
/** /**
* Handles 'rambox.clearUnreadCount' messages. * Handles 'rambox.clearUnreadCount' messages.
* Clears the unread count. * Clears the unread count.

Loading…
Cancel
Save