Files
oh-my-pi/packages/natives/native/desktop.js
T
2026-07-25 07:45:56 +00:00

11 lines
316 B
JavaScript

import { loadNative } from "./loader-state.js";
/**
* Construct a desktop session without loading the native addon until the
* computer worker receives its initialization message.
*/
export function createDesktopSession(options) {
const { DesktopSession } = loadNative();
return new DesktopSession(options);
}