{"size": 357, "ext": "js", "max_stars_repo_path": "scripts/bloghelper/app-editor.js", "max_stars_repo_name": "rixingyike/cloud-markdown-editor", "max_stars_repo_stars_event_min_datetime": "2021-03-18T12:58:52.000Z", "max_stars_repo_stars_event_max_datetime": "2022-02-17T13:49:57.000Z", "max_issues_repo_path": "scripts/bloghelper/app-editor.js", "max_issues_repo_name": "rixingyike/cloud-markdown-editor", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "scripts/bloghelper/app-editor.js", "max_forks_repo_name": "rixingyike/cloud-markdown-editor", "max_forks_repo_forks_event_min_datetime": "2021-03-18T13:13:48.000Z", "max_forks_repo_forks_event_max_datetime": "2021-03-18T15:19:26.000Z"}
{"max_stars_count": 4, "max_issues_count": null, "max_forks_count": 2, "avg_line_length": 21.0, "max_line_length": 50, "alphanum_fraction": 0.6610644258}
const { app, BrowserWindow } = require('electron')
const path = require("path")

function openIndex () {   
  const win = new BrowserWindow({
    width: 800,
    height: 600,
    webPreferences: {
      nodeIntegration: true
    }
  })
  win.loadFile(path.resolve('index.html'))
  // 打开开发者工具
  win.webContents.openDevTools()
}

exports.openIndex = openIndex