From 40605607e61196faae42954bfd3ee58d79579f7f Mon Sep 17 00:00:00 2001 From: JC Brand Date: Tue, 21 Feb 2017 22:17:05 +0100 Subject: [PATCH] Specify radix for parseInt --- src/converse-core.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/converse-core.js b/src/converse-core.js index 67a68cbdd..4d9060566 100755 --- a/src/converse-core.js +++ b/src/converse-core.js @@ -859,7 +859,7 @@ var resources = this.get('resources'); if (!_.isObject(resources)) { resources = {}; } resources[resource] = { - 'priority': _.isNaN(parseInt(priority)) ? 0 : parseInt(priority), + 'priority': _.isNaN(parseInt(priority, 10)) ? 0 : parseInt(priority, 10), 'status': chat_status, 'timestamp': moment().format() };