From 88f563d0d7e68477f8f2194408b9d3840a7f1385 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Tue, 18 Jul 2023 17:18:42 -0400 Subject: [PATCH] refactor: remove setBootloaderPortals --- src/main/bootloader/kernel.ts | 3 --- src/main/bootloader/vars.ts | 3 --- 2 files changed, 6 deletions(-) diff --git a/src/main/bootloader/kernel.ts b/src/main/bootloader/kernel.ts index f8e668f..9e354d9 100644 --- a/src/main/bootloader/kernel.ts +++ b/src/main/bootloader/kernel.ts @@ -9,7 +9,6 @@ import { import { log, logErr, sendAuthUpdate } from "./util.js"; import { defaultKernelLink, - setBootloaderPortals, setKernelLoaded, setLoginComplete, } from "./vars.js"; @@ -55,8 +54,6 @@ export async function loadKernel() { return; } - setBootloaderPortals(getActivePortals()); - try { await new Promise(async (resolve, reject) => { const url = URL.createObjectURL(await readableStreamToBlob(kernelCode)); diff --git a/src/main/bootloader/vars.ts b/src/main/bootloader/vars.ts index d8521d9..7d425bf 100644 --- a/src/main/bootloader/vars.ts +++ b/src/main/bootloader/vars.ts @@ -29,9 +29,6 @@ export function setKernelLoaded(status: string) { export function getKernelLoaded() { return kernelLoaded; } -export function setBootloaderPortals(portals: Client[]) { - window.bootloaderPortals = portals; -} export function getCommunicationKey() { if (!communicationKey) {