Skip to content

Commit

Permalink
Debugging issue with app installation
Browse files Browse the repository at this point in the history
  • Loading branch information
BrianSChapman committed Jan 20, 2023
1 parent 417a5c4 commit 0f490a7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 deletions.
3 changes: 0 additions & 3 deletions .vscode/settings.json

This file was deleted.

7 changes: 3 additions & 4 deletions client/src/js/database.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const initdb = async () =>
console.log("jate database already exists");
return;
}
db.createObjectStore("jate", { keyPath: "id", autoIncrement: true });
db.createObjectStore("jate", { keyPath: 'id', autoIncrement: true });
console.log("jate database created");
},
});
Expand All @@ -20,8 +20,7 @@ export const putDb = async (content) => {
const store = putData.objectStore("jate");
const request = store.put(content);
const result = await request;
console.log("Successfully saved the data!");
return result;
console.log("Successfully saved the data!", result);
};
console.error("putDb not implemented");

Expand All @@ -34,7 +33,7 @@ export const getDb = async () => {
const store = getData.objectStore("jate");
const request = store.getAll();
const result = await request;
console.log("result.value", result);
console.log("result.value");
return result;
};

Expand Down
2 changes: 1 addition & 1 deletion client/src/js/install.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ window.addEventListener("beforeinstallprompt", (event) => {
butInstall.classList.toggle("hidden", false);
});

butInstall.addEventListener("click", async (event) => {
butInstall.addEventListener("click", async () => {
const promptEvent = window.deferredPrompt;
if (!promptEvent) {
return;
Expand Down

0 comments on commit 0f490a7

Please sign in to comment.