From 7d35e8f61f1133ea8756b73143cf1651ba5a1584 Mon Sep 17 00:00:00 2001 From: Danny Coates Date: Tue, 28 Jul 2020 08:23:59 -0700 Subject: [PATCH] fixed local without fxa --- app/crc32.js | 4 ++-- app/user.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/crc32.js b/app/crc32.js index f6f7f5b6..ec6d67e6 100644 --- a/app/crc32.js +++ b/app/crc32.js @@ -1,4 +1,4 @@ -const LOOKUP = [ +const LOOKUP = Int32Array.from([ 0x00000000, 0x77073096, 0xee0e612c, @@ -255,7 +255,7 @@ const LOOKUP = [ 0xc30c8ea1, 0x5a05df1b, 0x2d02ef8d -]; +]); module.exports = function crc32(uint8Array, previous) { let crc = previous === 0 ? 0 : ~~previous ^ -1; diff --git a/app/user.js b/app/user.js index 6b857db0..49d8decb 100644 --- a/app/user.js +++ b/app/user.js @@ -99,7 +99,7 @@ export default class User { } get loginRequired() { - return this.authConfig.fxa_required; + return this.authConfig && this.authConfig.fxa_required; } async metricId() {