refactor: remove setBootloaderPortals
This commit is contained in:
parent
4e05659a17
commit
88f563d0d7
|
@ -9,7 +9,6 @@ import {
|
||||||
import { log, logErr, sendAuthUpdate } from "./util.js";
|
import { log, logErr, sendAuthUpdate } from "./util.js";
|
||||||
import {
|
import {
|
||||||
defaultKernelLink,
|
defaultKernelLink,
|
||||||
setBootloaderPortals,
|
|
||||||
setKernelLoaded,
|
setKernelLoaded,
|
||||||
setLoginComplete,
|
setLoginComplete,
|
||||||
} from "./vars.js";
|
} from "./vars.js";
|
||||||
|
@ -55,8 +54,6 @@ export async function loadKernel() {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
setBootloaderPortals(getActivePortals());
|
|
||||||
|
|
||||||
try {
|
try {
|
||||||
await new Promise(async (resolve, reject) => {
|
await new Promise(async (resolve, reject) => {
|
||||||
const url = URL.createObjectURL(await readableStreamToBlob(kernelCode));
|
const url = URL.createObjectURL(await readableStreamToBlob(kernelCode));
|
||||||
|
|
|
@ -29,9 +29,6 @@ export function setKernelLoaded(status: string) {
|
||||||
export function getKernelLoaded() {
|
export function getKernelLoaded() {
|
||||||
return kernelLoaded;
|
return kernelLoaded;
|
||||||
}
|
}
|
||||||
export function setBootloaderPortals(portals: Client[]) {
|
|
||||||
window.bootloaderPortals = portals;
|
|
||||||
}
|
|
||||||
|
|
||||||
export function getCommunicationKey() {
|
export function getCommunicationKey() {
|
||||||
if (!communicationKey) {
|
if (!communicationKey) {
|
||||||
|
|
Reference in New Issue