text: import {BrowserWindow, globalShortcut} from "electron";
  import path from "path";
  import {enable as remoteEnable, initialize as remoteInitialize} from "@electron/remote/dist/src/main/server";
  import cors from "../utils/cors";
  import {storeInit} from "../utils/init";
  
  const isDev = process.env.NODE_ENV === 'development'
  
  let developmentWin
  
  const developmentWinURL = isDev
      ? `http://localhost:4396/#/development`
      : `file://${__dirname}/index.html#/development`
  
  export function createDevelopmentWindow() {
      developmentWin = new BrowserWindow({
          height: 750,
          width: 1200,
          minHeight: 750,
          minWidth: 1200,
          useContentSize: true,
          frame: false,
          maximizable: true,
          webPreferences: {
              contextIsolation: false,
              enableRemoteModule: true,
              nodeIntegration: true,
              nodeIntegrationInSubFrames: true,
              preload: path.join(__dirname, '../electron/preload.js'),
              webSecurity: false,
          }
      })
  
      developmentWin.loadURL(developmentWinURL).then(() => {
          remoteInitialize()
          remoteEnable(developmentWin.webContents)
      })
  
      developmentWin.on('closed', () => {
          developmentWin = null
      })
  
      return developmentWin
  }