From a6e5b935ed6ab61ba031c7a1de5f41c36de1d1dc Mon Sep 17 00:00:00 2001 From: Ramiro Saenz Date: Mon, 18 Jul 2016 16:47:16 -0300 Subject: [PATCH] Fixes minor error on page title updated --- app/ux/WebView.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/ux/WebView.js b/app/ux/WebView.js index e8b653c9..1f47b1fe 100644 --- a/app/ux/WebView.js +++ b/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);