polyfill MAX_SAFE_INTEGER everywhere

This commit is contained in:
ansuz 2018-01-16 18:03:55 +01:00
parent 3858aa976a
commit 1dd07ea48a

View File

@ -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 ($) {