*Add needed imports

*register the skynetprovider
This commit is contained in:
Derrick Hammer 2022-07-31 00:59:51 -04:00
parent 236f64bc43
commit c6398c2efb
1 changed files with 6 additions and 3 deletions

View File

@ -1,4 +1,9 @@
import type { DataFn, KernelAuthStatus } from "libskynet";
import tldEnum from "@lumeweb/tld-enum";
import WebEngine from "../webEngine.js";
import InternalProvider from "../contentProviders/internalProvider.js";
import SkynetProvider from "../contentProviders/skynetProvider.js";
import { init } from "libkernel";
declare var browser: any; // tsc
let queriesNonce = 1;
@ -181,11 +186,9 @@ function bridgeListener(port: any) {
}
browser.runtime.onConnect.addListener(bridgeListener);
import WebEngine from "../webEngine.js";
import InternalProvider from "../contentProviders/internalProvider.js";
const engine = new WebEngine();
engine.registerContentProvider(new InternalProvider(engine));
engine.registerContentProvider(new SkynetProvider(engine));
// @ts-ignore
let kernelFrame: HTMLIFrameElement = document.createElement("iframe");