'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
  })
})
