hot reload is a privacy badger thing

This commit is contained in:
2024-08-26 16:11:43 -06:00
parent 3ed5736fd4
commit 0af6ffa8f5
3 changed files with 5 additions and 5 deletions

View File

@@ -1,6 +1,6 @@
export default function Day({ day }: { day?: Date }) {
const classes = "border rounded rounded-3 p-2 pb-4 m-1 ";
if (!day) return <div className={classes + ""}>d</div>;
if (!day) return <div className={classes + ""}></div>;
return <div className={classes + " bg-slate-900"}>{day.getDate()}</div>;
}

View File

@@ -185,8 +185,8 @@ export const courseMarkdownLoader = {
async directoryExists(directoryPath: string): Promise<boolean> {
try {
const stat = await fs.stat(directoryPath);
return stat.isDirectory();
await fs.access(directoryPath);
return true;
} catch {
return false;
}

View File

@@ -10,8 +10,8 @@ const basePath = process.env.STORAGE_DIRECTORY ?? "./storage";
const directoryExists = async (directoryPath: string): Promise<boolean> => {
try {
const stat = await fs.stat(directoryPath);
return stat.isDirectory();
await fs.access(directoryPath);
return true;
} catch {
return false;
}