forked from jsnbuchanan/crowd-funder-for-time-pwa
fix image server references for tests (2 tests failing: missing function & looking for registration prompt for unregistered user)
This commit is contained in:
@@ -23,8 +23,6 @@ const enterOrStart = async (
|
||||
const accountsDB = await accountsDBPromise;
|
||||
const num_accounts = await accountsDB.accounts.count();
|
||||
|
||||
console.log("Number of accounts: ", num_accounts);
|
||||
|
||||
if (num_accounts > 0) {
|
||||
next();
|
||||
} else {
|
||||
@@ -299,8 +297,6 @@ const router = createRouter({
|
||||
routes,
|
||||
});
|
||||
|
||||
console.log("Initial URL:", initialPath);
|
||||
|
||||
// Replace initial URL to start at `/` if necessary
|
||||
router.replace(initialPath || "/");
|
||||
|
||||
@@ -319,12 +315,10 @@ const errorHandler = (
|
||||
|
||||
router.onError(errorHandler); // Assign the error handler to the router instance
|
||||
|
||||
router.beforeEach((to, from, next) => {
|
||||
console.log("Navigating to view:", to.name);
|
||||
console.log("From view:", from.name);
|
||||
next();
|
||||
});
|
||||
|
||||
console.log("Initial URL:", window.location.pathname);
|
||||
// router.beforeEach((to, from, next) => {
|
||||
// console.log("Navigating to view:", to.name);
|
||||
// console.log("From view:", from.name);
|
||||
// next();
|
||||
// });
|
||||
|
||||
export default router;
|
||||
|
||||
Reference in New Issue
Block a user