From 1dd07ea48ab3824b882353e031fbe0eed9610a3a Mon Sep 17 00:00:00 2001 From: ansuz Date: Tue, 16 Jan 2018 18:03:55 +0100 Subject: [PATCH] polyfill MAX_SAFE_INTEGER everywhere --- www/common/boot2.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/www/common/boot2.js b/www/common/boot2.js index ec3b3d7db..11dfa1649 100644 --- a/www/common/boot2.js +++ b/www/common/boot2.js @@ -21,6 +21,11 @@ define([ }; } + // RPC breaks if you don't support Number.MAX_SAFE_INTEGER + if (Number && !Number.MAX_SAFE_INTEGER) { + Number.MAX_SAFE_INTEGER = 9007199254740991; + } + var failStore = function () { console.error(new Error('wut')); require(['jquery'], function ($) {