From e92756200673cd5af6a024d5aad5df172bf5423b Mon Sep 17 00:00:00 2001 From: yflory Date: Fri, 8 Mar 2019 17:07:22 +0100 Subject: [PATCH] Fix registration with Internet Explorer --- customize.dist/credential.js | 8 +++++++- customize.dist/login.js | 3 ++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/customize.dist/credential.js b/customize.dist/credential.js index 8635bf6c4..d1d88bd97 100644 --- a/customize.dist/credential.js +++ b/customize.dist/credential.js @@ -61,7 +61,13 @@ define([ } // 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 entropy.used += n; diff --git a/customize.dist/login.js b/customize.dist/login.js index 25fcc8dcf..21668140f 100644 --- a/customize.dist/login.js +++ b/customize.dist/login.js @@ -113,7 +113,8 @@ define([ }; 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 () {