diff --git a/app/ux/WebView.js b/app/ux/WebView.js index 6e9220128..9e9f4cae8 100644 --- a/app/ux/WebView.js +++ b/app/ux/WebView.js @@ -108,8 +108,9 @@ Ext.define('Rambox.ux.WebView',{ }); webview.addEventListener("page-title-updated", function(e) { - var count = e.title.match(/\((\d+)\)/); + var count = e.title.match(/\(([^)]+)\)/); count = count ? parseInt(count[1]) : 0; + count = Ext.isNaN(count) ? 0 : count; // Some services have special characters. Example: (•) switch ( me.type ) { case 'messenger':