/** License window bridge: `window.licenseApi` as in Electron 0.1.0 `licensePreload.js`. */
import { licenseApi } from "../index";
import { bootInfo } from "./boot";
import { installWindowChrome } from "./windowChrome";

const api = Object.freeze({
  read: licenseApi.read,
  showLicense: licenseApi.showLicense,
  accept: licenseApi.accept,
  decline: licenseApi.decline
});
Object.defineProperty(window, "licenseApi", { value: api, writable: false, configurable: false, enumerable: true });
// The license window keeps native decorations on every platform (as in 0.1.0).
void installWindowChrome;
void bootInfo;
