fix: register s5

This commit is contained in:
Derrick Hammer 2023-11-18 03:25:27 -05:00
parent 2c972144f9
commit a76076b730
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 2 additions and 0 deletions

View File

@ -2,11 +2,13 @@ import { createClient as createDnsClient } from "@lumeweb/kernel-dns-client";
import { ProviderManager } from "./providerManager.js"; import { ProviderManager } from "./providerManager.js";
import IPFSProvider from "./providers/ipfs.js"; import IPFSProvider from "./providers/ipfs.js";
import URLRewriteFilter from "./filters/urlRewrite.js"; import URLRewriteFilter from "./filters/urlRewrite.js";
import S5Provider from "@/backend/providers/s5.ts";
const dnsClient = createDnsClient(); const dnsClient = createDnsClient();
const providerManager = new ProviderManager(); const providerManager = new ProviderManager();
providerManager.register(new IPFSProvider()); providerManager.register(new IPFSProvider());
providerManager.register(new S5Provider());
providerManager.processor.registerFilter(new URLRewriteFilter()); providerManager.processor.registerFilter(new URLRewriteFilter());
globalThis.postMessage = async (...args) => { globalThis.postMessage = async (...args) => {