added permissions for website

This commit is contained in:
2024-11-04 11:55:14 -05:00
parent 5c845ffe61
commit 014e4c8b7b
19 changed files with 507 additions and 71 deletions
+16
View File
@@ -0,0 +1,16 @@
import fs from 'fs';
import { finalTabCleanup } from "./clearCache.js";
export async function handleArgs() {
console.log(process.argv);
for (const arg of process.argv) {
console.log(arg);
if (arg === '--clear-cache') {
await finalTabCleanup();
fs.rmSync(`${import.meta.dirname}/cache`, { recursive: true });
}
else if (arg === '--no-cache') {
console.error('TODO: RUN WITH NEW SESSION/PARTITION');
}
}
}