diff --git a/www/js/platform.js b/www/js/platform.js index 45c8216cfc366d244bceee46a818898f333cd003..09c6cd1abe547d1fd29098c607faeda04538e7c0 100644 --- a/www/js/platform.js +++ b/www/js/platform.js @@ -439,7 +439,7 @@ if (typeof String.prototype.trim !== 'function') { if (Math && typeof Math.trunc !== 'function') { console.debug("Adding Math.trunc() -> was missing on this platform"); Math.trunc = function(number) { - return (number - 0.5).toFixed(); + return parseInt((number - 0.5).toFixed()); }; }