parent
236f64bc43
commit
c6398c2efb
|
@ -1,4 +1,9 @@
|
||||||
import type { DataFn, KernelAuthStatus } from "libskynet";
|
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
|
declare var browser: any; // tsc
|
||||||
let queriesNonce = 1;
|
let queriesNonce = 1;
|
||||||
|
@ -181,11 +186,9 @@ function bridgeListener(port: any) {
|
||||||
}
|
}
|
||||||
browser.runtime.onConnect.addListener(bridgeListener);
|
browser.runtime.onConnect.addListener(bridgeListener);
|
||||||
|
|
||||||
import WebEngine from "../webEngine.js";
|
|
||||||
import InternalProvider from "../contentProviders/internalProvider.js";
|
|
||||||
|
|
||||||
const engine = new WebEngine();
|
const engine = new WebEngine();
|
||||||
engine.registerContentProvider(new InternalProvider(engine));
|
engine.registerContentProvider(new InternalProvider(engine));
|
||||||
|
engine.registerContentProvider(new SkynetProvider(engine));
|
||||||
|
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
let kernelFrame: HTMLIFrameElement = document.createElement("iframe");
|
let kernelFrame: HTMLIFrameElement = document.createElement("iframe");
|
||||||
|
|
Reference in New Issue