mirror of
https://github.com/S2-/gitlit
synced 2025-08-04 05:10:05 +02:00
25 lines
464 B
JavaScript
25 lines
464 B
JavaScript
'use strict'
|
|
|
|
const app = require('app')
|
|
const BrowserWindow = require('browser-window')
|
|
let mainWindow
|
|
|
|
app.on('window-all-closed', function () {
|
|
app.quit()
|
|
})
|
|
|
|
app.on('ready', function () {
|
|
mainWindow = new BrowserWindow({
|
|
center: true,
|
|
title: 'Basic Test',
|
|
width: 800,
|
|
height: 600
|
|
})
|
|
|
|
mainWindow.loadUrl('file://' + require('path').resolve(__dirname, 'index.html'))
|
|
|
|
mainWindow.on('closed', function () {
|
|
mainWindow = null
|
|
})
|
|
})
|