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,
0x77073096,
0xee0e612c,
@ -255,7 +255,7 @@ const LOOKUP = [
0xc30c8ea1,
0x5a05df1b,
0x2d02ef8d
];
]);
module.exports = function crc32(uint8Array, previous) {
let crc = previous === 0 ? 0 : ~~previous ^ -1;

View File

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