Fix registration with Internet Explorer
This commit is contained in:
parent
9a2ba56030
commit
e927562006
@ -61,7 +61,13 @@ define([
|
|||||||
}
|
}
|
||||||
|
|
||||||
// grab an unused slice of the entropy
|
// grab an unused slice of the entropy
|
||||||
var A = bytes.slice(entropy.used, entropy.used + n);
|
// Note: Internet Explorer doesn't support .slice on Uint8Array
|
||||||
|
var A;
|
||||||
|
if (bytes.slice) {
|
||||||
|
A = bytes.slice(entropy.used, entropy.used + n);
|
||||||
|
} else {
|
||||||
|
A = bytes.subarray(entropy.used, entropy.used + n);
|
||||||
|
}
|
||||||
|
|
||||||
// account for the bytes you used so you don't reuse bytes
|
// account for the bytes you used so you don't reuse bytes
|
||||||
entropy.used += n;
|
entropy.used += n;
|
||||||
|
|||||||
@ -113,7 +113,8 @@ define([
|
|||||||
};
|
};
|
||||||
|
|
||||||
var isProxyEmpty = function (proxy) {
|
var isProxyEmpty = function (proxy) {
|
||||||
return Object.keys(proxy).length === 0;
|
var l = Object.keys(proxy).length;
|
||||||
|
return l === 0 || (l === 2 && proxy._events && proxy.on);
|
||||||
};
|
};
|
||||||
|
|
||||||
var setMergeAnonDrive = function () {
|
var setMergeAnonDrive = function () {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user