From 2511b717a36a404fb36f0ab367c86d697bf2d7cc Mon Sep 17 00:00:00 2001 From: adueck Date: Thu, 22 Sep 2022 18:52:31 +0400 Subject: [PATCH] debug --- website/src/lib/pouch-dbs.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/website/src/lib/pouch-dbs.ts b/website/src/lib/pouch-dbs.ts index 26cc17e..be7eb6c 100644 --- a/website/src/lib/pouch-dbs.ts +++ b/website/src/lib/pouch-dbs.ts @@ -73,6 +73,9 @@ function initializeLocalDb(type: LocalDbType, refresh: () => void, user: AT.Ling ? user.wordlistDbName : ""; const password = "couchDbPassword" in user ? user.couchDbPassword : ""; + console.log("initializing db", type); + console.log("using pwd", password); + console.log({ user }); const db = dbs[type]; // only initialize the db if it doesn't exist or if it has a different name if ((!db) || (db.db?.name !== name)) {