mirror of
https://github.com/aljazceru/ditto.git
synced 2025-12-19 06:24:21 +01:00
Make EventsDB not rely on Conf
This commit is contained in:
@@ -24,7 +24,7 @@ export const policyWorker = Comlink.wrap<CustomPolicy>(
|
||||
);
|
||||
|
||||
try {
|
||||
await policyWorker.import(Conf.policy);
|
||||
await policyWorker.init(Conf.policy, Conf.databaseUrl, Conf.pubkey);
|
||||
console.debug(`Using custom policy: ${Conf.policy}`);
|
||||
} catch (e) {
|
||||
if (e.message.includes('Module not found')) {
|
||||
|
||||
Reference in New Issue
Block a user