Remove useless policy dir

This commit is contained in:
Alex Gleason
2024-05-15 20:35:00 -05:00
parent 0b6b62f3b3
commit f14b64b003
4 changed files with 4 additions and 9 deletions

View File

@@ -3,8 +3,6 @@ import * as Comlink from 'comlink';
import { Conf } from '@/config.ts';
import type { CustomPolicy } from '@/workers/policy.worker.ts';
const policyDir = new URL('../../data/policy', import.meta.url).pathname;
export const policyWorker = Comlink.wrap<CustomPolicy>(
new Worker(
new URL('./policy.worker.ts', import.meta.url),
@@ -12,8 +10,8 @@ export const policyWorker = Comlink.wrap<CustomPolicy>(
type: 'module',
deno: {
permissions: {
read: [Conf.policy, policyDir],
write: [policyDir],
read: [Conf.policy],
write: false,
net: 'inherit',
env: false,
},