mirror of
https://github.com/whscullin/apple2js.git
synced 2024-01-12 14:14:38 +00:00
Avoid startup hiccup
This commit is contained in:
parent
ecef3010fd
commit
e0ab1f9891
@ -819,7 +819,7 @@ export function clearPrinterPaper() {
|
||||
_printer.clear();
|
||||
}
|
||||
|
||||
export function initUI(apple2, disk2, smartPort, printer, e) {
|
||||
function onLoaded(apple2, disk2, smartPort, printer, e) {
|
||||
_apple2 = apple2;
|
||||
cpu = _apple2.getCPU();
|
||||
io = _apple2.getIO();
|
||||
@ -929,3 +929,9 @@ export function initUI(apple2, disk2, smartPort, printer, e) {
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
export function initUI(apple2, disk2, smartPort, printer, e) {
|
||||
window.addEventListener('load', () => {
|
||||
onLoaded(apple2, disk2, smartPort, printer, e)
|
||||
});
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user