diff options
author | 2019-09-19 11:11:05 +0200 | |
---|---|---|
committer | 2019-09-19 11:11:05 +0200 | |
commit | fefd60add21e2f1b3cf7d5cbb5e96125126a4b35 (patch) | |
tree | b3cfd3d3a6f2ff14fe3b2d6c3644437ab0ed3a2e | |
parent | Parse unread messages count as integer before sending to host (diff) | |
download | ferdium-app-fefd60add21e2f1b3cf7d5cbb5e96125126a4b35.tar.gz ferdium-app-fefd60add21e2f1b3cf7d5cbb5e96125126a4b35.tar.zst ferdium-app-fefd60add21e2f1b3cf7d5cbb5e96125126a4b35.zip |
Fix lint
-rw-r--r-- | src/webview/lib/RecipeWebview.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/webview/lib/RecipeWebview.js b/src/webview/lib/RecipeWebview.js index cae6c7dc4..877e45e35 100644 --- a/src/webview/lib/RecipeWebview.js +++ b/src/webview/lib/RecipeWebview.js | |||
@@ -42,8 +42,8 @@ class RecipeWebview { | |||
42 | // Parse number to integer | 42 | // Parse number to integer |
43 | // This will correct errors that recipes may introduce, e.g. | 43 | // This will correct errors that recipes may introduce, e.g. |
44 | // by sending a String instead of an integer | 44 | // by sending a String instead of an integer |
45 | const directInt = parseInt(direct); | 45 | const directInt = parseInt(direct, 10); |
46 | const indirectInt = parseInt(indirect); | 46 | const indirectInt = parseInt(indirect, 10); |
47 | 47 | ||
48 | const count = { | 48 | const count = { |
49 | direct: directInt > 0 ? directInt : 0, | 49 | direct: directInt > 0 ? directInt : 0, |