feat: add console debugging support by exposing the kernel package globally

This commit is contained in:
Derrick Hammer 2023-07-31 12:54:51 -04:00
parent 8e5922ab60
commit 4dc1d81dac
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 3 additions and 0 deletions

View File

@ -3,6 +3,7 @@ import browser from "webextension-polyfill";
import { logLargeObjects } from "./background/util.js"; import { logLargeObjects } from "./background/util.js";
import { queryKernel } from "./background/kernel.js"; import { queryKernel } from "./background/kernel.js";
import { boot } from "./background/boot.js"; import { boot } from "./background/boot.js";
import * as kernel from "@lumeweb/libkernel";
setTimeout(logLargeObjects, getTimer()); setTimeout(logLargeObjects, getTimer());
@ -43,3 +44,5 @@ browser.runtime.onMessage.addListener(async (request, sender) => {
}); });
boot(); boot();
globalThis.kernel = kernel;