aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/mysms
diff options
context:
space:
mode:
Diffstat (limited to 'recipes/mysms')
-rw-r--r--recipes/mysms/package.json2
-rw-r--r--recipes/mysms/webview.js3
2 files changed, 2 insertions, 3 deletions
diff --git a/recipes/mysms/package.json b/recipes/mysms/package.json
index 29cff0b..9030285 100644
--- a/recipes/mysms/package.json
+++ b/recipes/mysms/package.json
@@ -1,7 +1,7 @@
1{ 1{
2 "id": "mysms", 2 "id": "mysms",
3 "name": "MySMS", 3 "name": "MySMS",
4 "version": "1.1.0", 4 "version": "1.1.1",
5 "license": "MIT", 5 "license": "MIT",
6 "config": { 6 "config": {
7 "serviceURL": "https://app.mysms.com" 7 "serviceURL": "https://app.mysms.com"
diff --git a/recipes/mysms/webview.js b/recipes/mysms/webview.js
index f8660ee..a0b4ea6 100644
--- a/recipes/mysms/webview.js
+++ b/recipes/mysms/webview.js
@@ -4,8 +4,7 @@ module.exports = Ferdi => {
4 4
5 let count = 0; 5 let count = 0;
6 for (let i = 0; i < elements.length; i++) { 6 for (let i = 0; i < elements.length; i++) {
7 const count_line = parseInt(elements[i].innerText.replace(/[^0-9.]/g, '')); 7 if (Ferdi.safeParseInt(elements[i].innerText.replace(/[^0-9.]/g, '')) > 0) {
8 if (count_line > 0) {
9 count++; // count 1 per channel with messages 8 count++; // count 1 per channel with messages
10 } 9 }
11 } 10 }