fixed local without fxa

This commit is contained in:
Danny Coates 2020-07-28 08:23:59 -07:00
parent 7130c2e7b0
commit 7d35e8f61f
No known key found for this signature in database
GPG key ID: 4C442633C62E00CB
2 changed files with 3 additions and 3 deletions

View file

@ -1,4 +1,4 @@
const LOOKUP = [ const LOOKUP = Int32Array.from([
0x00000000, 0x00000000,
0x77073096, 0x77073096,
0xee0e612c, 0xee0e612c,
@ -255,7 +255,7 @@ const LOOKUP = [
0xc30c8ea1, 0xc30c8ea1,
0x5a05df1b, 0x5a05df1b,
0x2d02ef8d 0x2d02ef8d
]; ]);
module.exports = function crc32(uint8Array, previous) { module.exports = function crc32(uint8Array, previous) {
let crc = previous === 0 ? 0 : ~~previous ^ -1; let crc = previous === 0 ? 0 : ~~previous ^ -1;

View file

@ -99,7 +99,7 @@ export default class User {
} }
get loginRequired() { get loginRequired() {
return this.authConfig.fxa_required; return this.authConfig && this.authConfig.fxa_required;
} }
async metricId() { async metricId() {