diff options
Diffstat (limited to 'src/client/DocServer.ts')
-rw-r--r-- | src/client/DocServer.ts | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/client/DocServer.ts b/src/client/DocServer.ts index ad39529df..cab90138f 100644 --- a/src/client/DocServer.ts +++ b/src/client/DocServer.ts @@ -38,9 +38,9 @@ export namespace DocServer { }); strings.sort().forEach((str, i) => console.log(i.toString() + ' ' + str)); } - const filtered = Array.from(Object.keys(_cache)).filter(key => { + const filtered = Array.from(Object.keys(_cache)).filter(key => { const doc = _cache[key] as Doc; - if (!(StrCast(doc.author).includes(".edu")||StrCast(doc.author).includes(".com")) || doc.author == Doc.CurrentUserEmail) return true; + if (!(StrCast(doc.author).includes('.edu') || StrCast(doc.author).includes('.com')) || doc.author == Doc.CurrentUserEmail) return true; return false; }); @@ -380,7 +380,6 @@ export namespace DocServer { runInAction(() => (FieldLoader.ServerLoadStatus.retrieved = retrieved)); await new Promise(res => setTimeout(res)); } - console.log('<'); // deserialize const prom = SerializationHelper.Deserialize(field).then(async deserialized => { fields[field.id] = deserialized; @@ -393,7 +392,6 @@ export namespace DocServer { } else { delete _cache[field.id]; } - console.log('>'); return deserialized; }); // 4) here, for each of the documents we've requested *ourselves* (i.e. weren't promises or found in the cache) |