Browse Source

Fixes minor error on page title updated

pull/116/merge
Ramiro Saenz 9 years ago
parent
commit
a6e5b935ed
  1. 2
      app/ux/WebView.js

2
app/ux/WebView.js

@ -143,7 +143,7 @@ Ext.define('Rambox.ux.WebView',{
webview.addEventListener("page-title-updated", function(e) {
var count = e.title.match(/\(([^)]+)\)/); // Get text between (...)
count = count ? count[1] : '0';
count = count.match(/\d+/g).join(""); // Some services have special characters. Example: (•)
count = Ext.isArray(count.match(/\d+/g)) ? count.match(/\d+/g).join("") : count.match(/\d+/g); // Some services have special characters. Example: (•)
count = count ? parseInt(count) : 0;
var formattedCount = Rambox.util.Format.formatNumber(count);

Loading…
Cancel
Save