Real browser monitor type (#3308)

This commit is contained in:
Louis Lam 2023-06-27 15:54:33 +08:00 committed by GitHub
parent dd77baabe1
commit 4f6035899d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
14 changed files with 299 additions and 24 deletions

View file

@ -22,6 +22,8 @@ class Database {
*/
static uploadDir;
static screenshotDir;
static path;
/**
@ -105,6 +107,12 @@ class Database {
fs.mkdirSync(Database.uploadDir, { recursive: true });
}
// Create screenshot dir
Database.screenshotDir = Database.dataDir + "screenshots/";
if (! fs.existsSync(Database.screenshotDir)) {
fs.mkdirSync(Database.screenshotDir, { recursive: true });
}
log.info("db", `Data Dir: ${Database.dataDir}`);
}