refactor: add getKernelIframe method

This commit is contained in:
Derrick Hammer 2023-09-11 05:58:48 -04:00
parent 15c59603f2
commit 17eb74483c
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 5 additions and 0 deletions

View File

@ -70,6 +70,10 @@ let bgConn: any;
let serviceWorker: ServiceWorker; let serviceWorker: ServiceWorker;
let kernelIframe: HTMLIFrameElement; let kernelIframe: HTMLIFrameElement;
function getKernelIframe() {
return kernelIframe;
}
async function serviceWorkerReady() { async function serviceWorkerReady() {
const sw = await navigator.serviceWorker.ready; const sw = await navigator.serviceWorker.ready;
navigator.serviceWorker.onmessage = (...args) => handleMessage(...args); navigator.serviceWorker.onmessage = (...args) => handleMessage(...args);
@ -683,4 +687,5 @@ export {
logoutDefer, logoutDefer,
newKernelQuery, newKernelQuery,
serviceWorkerReady, serviceWorkerReady,
getKernelIframe,
}; };