From 640fd48e70ad20db4ec8f41c61fddcaa759d47ab Mon Sep 17 00:00:00 2001 From: Manav Rathi Date: Thu, 27 Jun 2024 20:00:17 +0530 Subject: [PATCH] Hobgoblin --- web/apps/photos/src/services/face/indexer.worker.ts | 2 +- web/docs/dependencies.md | 2 +- web/docs/storage.md | 2 +- web/packages/next/env.ts | 2 +- web/packages/next/kv.ts | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/web/apps/photos/src/services/face/indexer.worker.ts b/web/apps/photos/src/services/face/indexer.worker.ts index 8de8b61d16..a31db7550d 100644 --- a/web/apps/photos/src/services/face/indexer.worker.ts +++ b/web/apps/photos/src/services/face/indexer.worker.ts @@ -14,7 +14,7 @@ import type { FaceIndex } from "./types"; * Index faces in a file, save the persist the results locally, and put them on * remote. * - * This class is instantiated in a Web Worker so as to not get in the way of the + * This class is instantiated in a web worker so as to not get in the way of the * main thread. It could've been a bunch of free standing functions too, it is * just a class for convenience of compatibility with how the rest of our * comlink workers are structured. diff --git a/web/docs/dependencies.md b/web/docs/dependencies.md index c4d4e9479e..74e0076daf 100644 --- a/web/docs/dependencies.md +++ b/web/docs/dependencies.md @@ -169,7 +169,7 @@ For more details, see [translations.md](translations.md). ## Infrastructure - [comlink](https://github.com/GoogleChromeLabs/comlink) provides a minimal - layer on top of Web Workers to make them more easier to use. + layer on top of web workers to make them more easier to use. - [idb](https://github.com/jakearchibald/idb) provides a promise API over the browser-native IndexedDB APIs, and is used as our primary tabular database. diff --git a/web/docs/storage.md b/web/docs/storage.md index 8f1ca8bba8..729c6fd663 100644 --- a/web/docs/storage.md +++ b/web/docs/storage.md @@ -28,7 +28,7 @@ IndexedDB is a transactional NoSQL store provided by browsers. It has quite large storage limits, and data is stored per origin (and remains persistent across tab restarts). -Unlike local storage, IndexedDB is also accessible from Web Workers. +Unlike local storage, IndexedDB is also accessible from web workers. Older code used the LocalForage library for storing things in Indexed DB. This library falls back to localStorage in case Indexed DB storage is not available. diff --git a/web/packages/next/env.ts b/web/packages/next/env.ts index ea145d892d..29468ac02c 100644 --- a/web/packages/next/env.ts +++ b/web/packages/next/env.ts @@ -15,7 +15,7 @@ export const isDevBuild = process.env.NODE_ENV === "development"; * `true` if we're running in the default global context (aka the main thread) * of a web browser. * - * In particular, this is `false` when we're running in a Web Worker, + * In particular, this is `false` when we're running in a web worker, * irrespecitve of whether the worker is running in a Node.js context or a web * browser context. * diff --git a/web/packages/next/kv.ts b/web/packages/next/kv.ts index 219b5faa0b..8eafebe268 100644 --- a/web/packages/next/kv.ts +++ b/web/packages/next/kv.ts @@ -5,7 +5,7 @@ import log from "./log"; * Key value store schema. * * The use IndexedDB to store arbitrary key-value pairs. The functional - * motivation is to allow these to also be accessed from Web Workers (local + * motivation is to allow these to also be accessed from web workers (local * storage is limited to the main thread). * * The "kv" database consists of one object store, "kv". Each entry is a string.