github.com/easysoft/zendata@v0.0.0-20240513203326-705bd5a7fd67/client/src/main.js (about)

     1  import {app} from 'electron';
     2  import {DEBUG} from './app/utils/consts';
     3  import {ZdApp} from "./app/app";
     4  import {logInfo} from "./app/utils/log";
     5  
     6  // Handle creating/removing shortcuts on Windows when installing/uninstalling.
     7  if (require('electron-squirrel-startup')) { // eslint-disable-line global-require
     8    app.quit();
     9  }
    10  
    11  logInfo(`DEBUG=${DEBUG}`)
    12  
    13  const zdApp = new ZdApp();
    14  app.on('ready', () => {
    15    zdApp.ready()
    16  });