async function showNotice()

in electron/menu.ts [101:120]


async function showNotice() {
  const parent = BrowserWindow.getFocusedWindow();
  if (parent == null) {
    return;
  }
  const { x, y } = parent.getBounds();
  const child = new BrowserWindow({
    parent,
    title: 'Acknowledgements',
    x: x + 50,
    y: y + 50,
  });
  child.menuBarVisible = false;
  const resourceDir = isDev ? path.join(__dirname, '../../') : process.resourcesPath;
  const pathToNotice = path.join(resourceDir, 'NOTICE.txt');
  child.loadFile(pathToNotice);
  child.once('ready-to-show', () => {
    child.show();
  });
}